Merge lp:~openerp-dev/openobject-addons/trunk-bug-849603-bde into lp:openobject-addons

Proposed by Bharat Devnani (Open ERP)
Status: Merged
Merged at revision: 5319
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-849603-bde
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
account/account_analytic_line.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-849603-bde
Reviewer Review Type Date Requested Status
Mustufa Rangwala (Open ERP) (community) Approve
qdp (OpenERP) Pending
Review via email: mp+77282@code.launchpad.net

Description of the change

Hello Sir,

I have done little modification in def on_change_unit_amount of account_analytic_line.py file in account module.

Thanks & Regards,
Devnani Bharat R.

To post a comment you must log in.
Revision history for this message
Mustufa Rangwala (Open ERP) (mra-tinyerp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account/account_analytic_line.py'
2--- account/account_analytic_line.py 2011-05-31 21:55:34 +0000
3+++ account/account_analytic_line.py 2011-09-30 10:06:47 +0000
4@@ -123,7 +123,7 @@
5 ctx['uom'] = unit
6 amount_unit = prod.price_get(pricetype.field, context=ctx)[prod.id]
7 prec = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
8- amount = amount_unit * quantity or 1.0
9+ amount = amount_unit * quantity or 0.0
10 result = round(amount, prec)
11 if not flag:
12 result *= -1

Subscribers

People subscribed via source and target branches

to all changes: