error creating an invoice

Re: error creating an invoice

Postby rbanks » Fri Nov 13, 2009 6:13 am

Code: Select all
<?xml version="1.0"?>
<terp>
   <data>

   #
   # Inherits for account analytic lines
   #

   <record model="ir.ui.view" id="view_account_analytic_line_tree_invoice_id">
      <field name="name">account.analytic.line.tree.invoice_id</field>
      <field name="model">account.analytic.line</field>
      <field name="type">tree</field>
      <field name="inherit_id" ref="hr_timesheet_invoice.view_account_analytic_line_tree_inherit" />
      <field name="arch" type="xml">
         <field name="to_invoice" position="before">
            <field name="invoice_id"/>
         </field>
      </field>
   </record>

      <wizard
         string="Invoice analytic lines"
         id="account_invoice_create"
         model="account.analytic.line"
         name="wizard.invoice.create"/>

   </data>
</terp>
rbanks
 
Posts: 26
Joined: Sat Jun 13, 2009 1:19 am

Re: error creating an invoice

Postby sraps » Fri Nov 13, 2009 12:32 pm

Actually from this I can not tell what the problem is. We were not be able to reproduce the problem.

I can only guess from this:
1) you have some other module installed that have modified the view;
2) there is some misconfiguration with the DB;

I am sure we could tell more if we would have access to your DB and codebase, but I am afraid this is out of scope for help on this forum, as this seems to be specific case with your installation.

P.S. I see that you are still using 4.version. From news on openobject.com site I can guess that there is 6th version coming. Obviously we will discontinue free support for 4.x module versions when 6.th will become stable. Please take a look on our migrations module: http://kndati.lv/index.php/en/openerp/o ... -migration

Kaspars
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm

Re: error creating an invoice

Postby rbanks » Fri Nov 13, 2009 4:26 pm

I am able to get to the invoice form using the web browser and clicking on the link to the invoice and once I am viewing the form although it says it is the supplier invoice instead of the client invoice. If I click on search the list of invoices are displayed and then if I click on the invoice it shows without the error. This is the same tree view as when I just try to display the list of client draft invoices so why would it behave differently? I am running version 5.0.0 and plan to upgrade when 5.2.0 is stable. Is the following the the view you were requesting:
Code: Select all
<?xml version="1.0"?>

                <tree editable="top" string="Analytic Entries">
                    <field name="date"/>
                    <field name="name"/>
                    <field name="unit_amount" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)" sum="Total quantity"/>
                    <field name="product_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
                    <field domain="[('type','=','normal')]" name="account_id"/>
                    <field invisible="True" name="product_uom_id" on_change="on_change_unit_amount(product_id, unit_amount, product_uom_id)"/>
                    <field name="amount" sum="Total amount"/>
                    <field name="general_account_id"/>
                    <field name="journal_id"/>
                    <field name="ref"/>
                </tree>
           
rbanks
 
Posts: 26
Joined: Sat Jun 13, 2009 1:19 am

Re: error creating an invoice

Postby sraps » Mon Nov 16, 2009 11:30 am

Hello,
from your code for view I can guess that you have installed Invoicing for TinyERP 4.2.x on OpenERP 5.version system, which is absolutely wrong. Although sometimes it is possible to have them installed, they are not compatible, that is why we have code branch for 5.version.

It seems that you do not have latest code release of Invoicing as well, which is absolutely required.

System 5.0.0. version is outdated by itself.

OK, I agree that you do not have to upgrade to absolute latest system version, which now is 5.0.6. Still it is mandatory that you apply bugfixes, as 5.0.0. were unsable.

I am sorry, we can not provide bugfix support, if you do not use latest versions.

Kaspars
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm

Re: error creating an invoice

Postby rbanks » Mon Nov 23, 2009 2:54 am

After upgrading to the latest version of OpenERP and the module it appears to be working.
rbanks
 
Posts: 26
Joined: Sat Jun 13, 2009 1:19 am

Previous

Return to Invoicing

cron
Copyright © 2001 Alistek Ltd., ALL RIGHTS RESERVED