Create invoice error

Create invoice error

Postby rbanks » Thu Jul 02, 2009 3:51 am

I received the following error when I tried to invoice an analytic line:

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 231, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 74, in __call__
return getattr(self, method)(*params)
File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 552, in execute
return self._execute(db, uid, wiz_id, datas, action, context)
File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 532, in _execute
return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py", line 178, in execute
res = self.execute_cr(cr, uid, data, state, context)
File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py", line 83, in execute_cr
res['action'] = result_def['action'](self, cr, uid, data, context)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/account_invoice_create.zip/account_invoice_create/wizard/account_invoice_create.py", line 29, in _do_create
partner_ids = data['form']['partners'][0][2]
TypeError: 'int' object is unsubscriptable

Any idea what I may be doing wrong?
rbanks
 
Posts: 26
Joined: Sat Jun 13, 2009 1:19 am

Re: Create invoice error

Postby ruslans » Thu Jul 02, 2009 12:24 pm

What application servers version you have?
Please show screenshot of invoice create wizard form, that we could to see you entry data.
ruslans
 
Posts: 15
Joined: Mon Jun 15, 2009 11:09 am

Re: Create invoice error

Postby rbanks » Thu Jul 02, 2009 1:59 pm

I am using Open ERP Version 5.0.0.3, PostgreSQL 8.3 found in OpenBIG virtual appliance http://www.openbig.org/open-erp-virtuelle-maschine.html

I go to Financial Management ‣ Entries Encoding ‣ Analytic Entries ‣ Entries Encoding by Line and then click Open Entries, select the Analytic Entry and click "Invoice analytic lines" under actions. The wizard form does display but when I click the "Create Invoices" button I get the error.
Last edited by rbanks on Thu Jul 02, 2009 3:00 pm, edited 1 time in total.
rbanks
 
Posts: 26
Joined: Sat Jun 13, 2009 1:19 am

Re: Create invoice error

Postby sraps » Thu Jul 02, 2009 2:52 pm

Hi,
actually it is very interesting... We have OpenERP ver. 5.0.1 - a bit younger release, so it is probably because of this.

Anyway we will have bug fix release for our modules today in a couple of hours, let it be approx. 16...17EET. You may try to upgrade our module.

If this does not help, try upgrading server, this may be the reason.

Please come back with results...

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

Re: Create invoice error

Postby rbanks » Thu Jul 02, 2009 6:28 pm

sraps,

I was able to get it to work with the client but but not the web browser.

Ricardy
rbanks
 
Posts: 26
Joined: Sat Jun 13, 2009 1:19 am

Re: Create invoice error

Postby sraps » Thu Jul 02, 2009 10:24 pm

Yes they seem a bit different, we have stumbled upon several such errors before. I do not use web browser by myself, as I do not find it ergonomic for daily use. We will look at this error tomorrow and try to make a bug fix release. Anyway in this case it is not critical.

Tomorrow we will push some minor improvements too.

So you are up and running, as I see... It would be nice to hear your opinion on this.

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

Re: Create invoice error

Postby catinga » Tue Aug 03, 2010 9:02 pm

Had to change the code so that I would be able to create invoices for partners with a payment_term defined. Yes another difference between Client and Web mode.

Code: Select all
   
if int(data['form']['partners'][0]):
    partner_ids=[]
    partner_ids.append(data['form']['partners'][0])
else:
    partner_ids = data['form']['partners'][0][2]
catinga
 
Posts: 5
Joined: Wed Feb 03, 2010 5:44 pm

Re: Create invoice error

Postby sraps » Wed Aug 04, 2010 12:20 pm

@catinga
Thanks, we will include your fix to next release.
sraps
 
Posts: 403
Joined: Mon May 04, 2009 10:04 pm

Re: Create invoice error

Postby tentionfree » Wed Jan 16, 2013 8:14 am

actually it is very interesting... We have OpenERP ver. 5.0.1 - a bit younger release, so it is probably because of this.
:P
Usman Gee..
tentionfree
 
Posts: 1
Joined: Wed Jan 16, 2013 8:12 am


Return to Invoicing

cron
Copyright © 2001 Alistek Ltd., ALL RIGHTS RESERVED