openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #18192
[Bug 1082004] [NEW] Error on on_change_unit_amount in account_analytic_line.py on account addon
Public bug reported:
When you try to call this method using a journal of type Sale you get
this error:
File "/home/hugo/openerp/sources/6.1/server/openerp/addons/account/account_analytic_line.py", line 111, in on_change_unit_amount
product_price_type_ids = product_price_type_obj.search(cr, uid, [('field','=','list_price')], context)
File "/home/hugo/openerp/sources/6.1/server/openerp/osv/orm.py", line 2245, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/hugo/openerp/sources/6.1/server/openerp/osv/orm.py", line 4592, in _search
offset_str = offset and ' offset %d' % offset or ''
TypeError: %d format: a number is required, not dict
I Can fix it by changing the context in line by context=context. Patch
is attached to bug
** Affects: openobject-addons
Importance: Undecided
Status: New
** Patch added: "account_analytic_line.diff"
https://bugs.launchpad.net/bugs/1082004/+attachment/3441137/+files/account_analytic_line.diff
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1082004
Title:
Error on on_change_unit_amount in account_analytic_line.py on account
addon
Status in OpenERP Addons (modules):
New
Bug description:
When you try to call this method using a journal of type Sale you get
this error:
File "/home/hugo/openerp/sources/6.1/server/openerp/addons/account/account_analytic_line.py", line 111, in on_change_unit_amount
product_price_type_ids = product_price_type_obj.search(cr, uid, [('field','=','list_price')], context)
File "/home/hugo/openerp/sources/6.1/server/openerp/osv/orm.py", line 2245, in search
return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
File "/home/hugo/openerp/sources/6.1/server/openerp/osv/orm.py", line 4592, in _search
offset_str = offset and ' offset %d' % offset or ''
TypeError: %d format: a number is required, not dict
I Can fix it by changing the context in line by context=context. Patch
is attached to bug
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1082004/+subscriptions
Follow ups
References