c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #31148
[Bug 834530] [NEW] [multicompanies] paying invoice
Public bug reported:
Make invoice with company_id linked with company A while logged in user is linked with company B.
Try to pay it. I got:
File "/usr/lib/python2.7/site-packages/openerp-server/osv/orm.py", line 181, in <lambda>
return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
File "/usr/lib/python2.7/site-packages/openerp-server/addons/account_voucher/account_voucher.py", line 559, in proforma_voucher
self.action_move_line_create(cr, uid, ids, context=context)
File "/usr/lib/python2.7/site-packages/openerp-server/addons/account_voucher/account_voucher.py", line 648, in action_move_line_create
ref = name.replace('/','')
AttributeError: 'bool' object has no attribute 'replace'
The "name" field of the voucher was filled with False value since get_id
function of Sequence object checks whether currently logged in user's
company is the same that in company_id field of Sequence.
In such a case invoice does't get a proper number as well.
I think the error message should be more informative at least.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/834530
Title:
[multicompanies] paying invoice
Status in OpenERP Modules (addons):
New
Bug description:
Make invoice with company_id linked with company A while logged in user is linked with company B.
Try to pay it. I got:
File "/usr/lib/python2.7/site-packages/openerp-server/osv/orm.py", line 181, in <lambda>
return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
File "/usr/lib/python2.7/site-packages/openerp-server/addons/account_voucher/account_voucher.py", line 559, in proforma_voucher
self.action_move_line_create(cr, uid, ids, context=context)
File "/usr/lib/python2.7/site-packages/openerp-server/addons/account_voucher/account_voucher.py", line 648, in action_move_line_create
ref = name.replace('/','')
AttributeError: 'bool' object has no attribute 'replace'
The "name" field of the voucher was filled with False value since
get_id function of Sequence object checks whether currently logged in
user's company is the same that in company_id field of Sequence.
In such a case invoice does't get a proper number as well.
I think the error message should be more informative at least.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/834530/+subscriptions
Follow ups
References