openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #24386
[Bug 1146866] Re: [Trunk/7.0/6.1]product_margin division by zero exception
** Tags added: product
--
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/1146866
Title:
[Trunk/7.0/6.1]product_margin division by zero exception
Status in OpenERP Addons (modules):
Confirmed
Bug description:
Hi,
if a invoice or a refund has an invoice line with an amount of 0
product_margin throws an division-by-zero exception. May be solved by
adding l.quantity != 0 to the where-clause of the sqlstr (sorry have
no development computer available to do the bugfixing on my own)?
OpenERP 6.1
ubuntu 12.04 server
Webclient
Greets
PS: Also effects the duplication of products with a quantity of zero
in one or more invoices/refunds!
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1146866/+subscriptions