openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #07119
[Bug 355053] Re: Openerp crash on receiving products average price
** Tags added: partial-delivery
--
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/355053
Title:
Openerp crash on receiving products average price
Status in OpenERP Addons (modules):
Fix Released
Bug description:
When I try to receive product(with average price set) which is -1 in
the stock with +1 to fill in. The Openerp client cash with following
report.
Traceback (most recent call last):
File "netsvc.pyo", line 231, in dispatch
File "netsvc.pyo", line 74, in __call__
File "service\web_services.pyo", line 552, in execute
File "service\web_services.pyo", line 532, in _execute
File "wizard\__init__.pyo", line 178, in execute
File "wizard\__init__.pyo", line 74, in execute_cr
File "C:\Program Files\OpenERP AllInOne\Server\addons\stock\wizard\wizard_partial_picking.py", line 137, in _do_split
ZeroDivisionError: float division
This is line 137 from wizard_partial_picking.py:
new_std_price = ((product.standard_price * product.qty_available)\
+ (new_price * qty))/(product.qty_available + qty)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/355053/+subscriptions