From b4a0ea1fde037ef49ff1da96084cf0a0dc6a9f89 Mon Sep 17 00:00:00 2001 From: "Jay (Open ERP)" Date: Tue, 1 Sep 2009 12:23:34 +0530 Subject: [PATCH] [FIX] Account_tax_include : floatdivision error corrected lp bug: https://launchpad.net/bugs/422078 fixed bzr revid: jvo@tinyerp.com-20090901065334-omql949tj1gb4qu5 --- addons/account_tax_include/invoice_tax_incl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_tax_include/invoice_tax_incl.py b/addons/account_tax_include/invoice_tax_incl.py index afe21383d64..2acca1eb815 100644 --- a/addons/account_tax_include/invoice_tax_incl.py +++ b/addons/account_tax_include/invoice_tax_incl.py @@ -122,7 +122,7 @@ class account_invoice_line(osv.osv): return { 'type':'src', 'name':line.name, - 'price_unit':line.price_subtotal / line.quantity, + 'price_unit':(line.quantity) and (line.price_subtotal / line.quantity) or line.price_subtotal, 'quantity':line.quantity, 'price':line.price_subtotal, 'account_id':line.account_id.id,