[FIX] Account_tax_include : floatdivision error corrected
lp bug: https://launchpad.net/bugs/422078 fixed bzr revid: jvo@tinyerp.com-20090901065334-omql949tj1gb4qu5
This commit is contained in:
parent
643490cad7
commit
b4a0ea1fde
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue