openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #20076
[Bug 1082004] Re: [6.1] Error on on_change_unit_amount in account_analytic_line.py on account addon
Hello Hugo ,
I have tried your scenario ( on_change_unit_amount with 'sales' journal) but I did not face any traceback in 6.1.
So would you please check it again an provide more information
regarding this issue.
Thanks.
** Changed in: openobject-addons
Status: New => Incomplete
--
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:
[6.1] Error on on_change_unit_amount in account_analytic_line.py on
account addon
Status in OpenERP Addons (modules):
Incomplete
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
References