Merge lp:~credativ/openobject-addons/6.1-lp977300-Invoice_line_subtotal_rounding_issue into lp:~credativ/openobject-addons/6.1

Proposed by Kinner Vachhani
Status: Merged
Merged at revision: 7057
Proposed branch: lp:~credativ/openobject-addons/6.1-lp977300-Invoice_line_subtotal_rounding_issue
Merge into: lp:~credativ/openobject-addons/6.1
Diff against target: 20 lines (+2/-1)
1 file modified
account/account.py (+2/-1)
To merge this branch: bzr merge lp:~credativ/openobject-addons/6.1-lp977300-Invoice_line_subtotal_rounding_issue
Reviewer Review Type Date Requested Status
Craig Gowing (credativ) Approve
Review via email: mp+197403@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Craig Gowing (credativ) (craiggowing) wrote :

Looks good. Thanks Kinner.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account.py'
2--- account/account.py 2013-05-03 14:19:28 +0000
3+++ account/account.py 2013-12-02 15:25:24 +0000
4@@ -29,6 +29,7 @@
5 from osv import fields, osv
6 import decimal_precision as dp
7 from tools.translate import _
8+from tools import float_round
9
10 def check_cycle(self, cr, uid, ids, context=None):
11 """ climbs the ``self._table.parent_id`` chains for 100 levels or
12@@ -2099,7 +2100,7 @@
13 }
14 """
15 precision = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
16- totalin = totalex = round(price_unit * quantity, precision)
17+ totalin = totalex = float_round(price_unit * quantity, precision)
18 tin = []
19 tex = []
20 for tax in taxes:

Subscribers

People subscribed via source and target branches

to all changes: