account_invoice_create error
11 posts • Page 1 of 2 • 1, 2
account_invoice_create errorI am getting the following when I try to create an invoice after clicking on "Invoice analytic lines":
Traceback (most recent call last): File "/usr/local/openerp/bin/netsvc.py", line 231, in dispatch result = LocalService(service_name)(method, *params) File "/usr/local/openerp/bin/netsvc.py", line 74, in __call__ return getattr(self, method)(*params) File "/usr/local/openerp/bin/service/web_services.py", line 552, in execute return self._execute(db, uid, wiz_id, datas, action, context) File "/usr/local/openerp/bin/service/web_services.py", line 532, in _execute return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context) File "/usr/local/openerp/bin/wizard/__init__.py", line 178, in execute res = self.execute_cr(cr, uid, data, state, context) File "/usr/local/openerp/bin/wizard/__init__.py", line 83, in execute_cr res['action'] = result_def['action'](self, cr, uid, data, context) File "/usr/local/openerp/bin/addons/account_invoice_create.zip/account_invoice_create/wizard/account_invoice_create.py", line 80, in _do_create partner_ids = data['form']['partners'][0][2] TypeError: 'int' object is unsubscriptable
Re: account_invoice_create errorPlease check if you have partner (field - Associated Partner) specified for every analytic account for analytic entries you are invoicing.
Kaspars
Re: account_invoice_create errorNow I get the following:
Traceback (most recent call last): File "/usr/local/openerp/bin/netsvc.py", line 231, in dispatch result = LocalService(service_name)(method, *params) File "/usr/local/openerp/bin/netsvc.py", line 74, in __call__ return getattr(self, method)(*params) File "/usr/local/openerp/bin/service/web_services.py", line 552, in execute return self._execute(db, uid, wiz_id, datas, action, context) File "/usr/local/openerp/bin/service/web_services.py", line 532, in _execute return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context) File "/usr/local/openerp/bin/wizard/__init__.py", line 178, in execute res = self.execute_cr(cr, uid, data, state, context) File "/usr/local/openerp/bin/wizard/__init__.py", line 83, in execute_cr res['action'] = result_def['action'](self, cr, uid, data, context) File "/usr/local/openerp/bin/addons/account_invoice_create.zip/account_invoice_create/wizard/account_invoice_create.py", line 127, in _do_create 'name': unicode(time.strftime('%D')+' - '+partner.name, "UTF-8")[:64], TypeError: decoding Unicode is not supported
Re: account_invoice_create errorI tried this on your demo and got the following:
Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/openerp-server/netsvc.py", line 235, in dispatch result = LocalService(service_name)(method, *params) File "/usr/lib/python2.4/site-packages/openerp-server/netsvc.py", line 74, in __call__ return getattr(self, method)(*params) File "/usr/lib/python2.4/site-packages/openerp-server/service/web_services.py", line 582, in execute return self._execute(db, uid, wiz_id, datas, action, context) File "/usr/lib/python2.4/site-packages/openerp-server/service/web_services.py", line 562, in _execute return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context) File "/usr/lib/python2.4/site-packages/openerp-server/wizard/__init__.py", line 178, in execute res = self.execute_cr(cr, uid, data, state, context) File "/usr/lib/python2.4/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.4/site-packages/openerp-server/addons/account_invoice_create.zip/account_invoice_create/wizard/account_invoice_create.py", line 68, in _do_create TypeError: unsubscriptable object Last edited by rbanks on Mon Nov 16, 2009 9:01 pm, edited 1 time in total.
Re: account_invoice_create errorPlease have the latest version of Invoicing.
Kaspars
Re: account_invoice_create errorAfter upgrading to the latest version of OpenERP and the module it appears to be working.
Re: account_invoice_create errorThe thing is, I'm using the latest version (*) - 1.0 -, and I keep getting the error...
I'm quite sure every account has an associated partner (spent hours taking care of that) so it must be something else, I guess. (*) by the way, changing the version number and displaying it in the module list (download section) would be really useful when it comes for the developer to know which version he's running
Re: account_invoice_create errorHi Kaspar,
Found out the problem! In the _do_create function, the line
should turn to
I'm using... OpenERP 5.0.6 Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Ubuntu 9.10 Karmic Koala
Re: account_invoice_create errorHi,
is that so, that you are using a eTiny web client? We have seen such differences mainly when somebody used OpenERP web client, as it has some annoying differences. Please describe your environment more closely... Beast regards, Kaspars
Re: account_invoice_create errorYes, I'm using the web version of OpenERP. I still haven't tried the module with the client as it is not really the company's policy.
I'm not sure of the details you need. Please, guide me...
11 posts • Page 1 of 2 • 1, 2
|
Copyright © 2001 Alistek Ltd., ALL RIGHTS RESERVED