← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~pedro.baeza/ocb-addons/7.0-bug-1173102 into lp:ocb-addons

 

Pedro Manuel Baeza has proposed merging lp:~pedro.baeza/ocb-addons/7.0-bug-1173102 into lp:ocb-addons.

Requested reviews:
  OpenERP Community Backports Team (ocb)
Related bugs:
  Bug #1173102 in OpenERP Community Backports (Addons): "[7.0/trunk] Product price change when taxes are included in price"
  https://bugs.launchpad.net/ocb-addons/+bug/1173102

For more details, see:
https://code.launchpad.net/~pedro.baeza/ocb-addons/7.0-bug-1173102/+merge/205911

[FIX] account: Problem rounding taxes when taxes are included in price.

See lp:1173102 for more details.
-- 
https://code.launchpad.net/~pedro.baeza/ocb-addons/7.0-bug-1173102/+merge/205911
Your team OpenERP Community Backports Team is requested to review the proposed merge of lp:~pedro.baeza/ocb-addons/7.0-bug-1173102 into lp:ocb-addons.
=== modified file 'account/account.py'
--- account/account.py	2014-01-10 13:38:31 +0000
+++ account/account.py	2014-02-12 08:29:35 +0000
@@ -2322,8 +2322,7 @@
             tax = {'name':'', 'amount':0.0, 'account_collected_id':1, 'account_paid_id':2}
             one tax for each tax id in IDS and their children
         """
-        if not precision:
-            precision = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
+        precision = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
         res = self._unit_compute_inv(cr, uid, taxes, price_unit, product, partner=None)
         total = 0.0
         for r in res:


Follow ups