Merge lp:~openerp-dev/openobject-addons/trunk-bug-704469-ssh into lp:openobject-addons

Proposed by Sunil Sharma(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-704469-ssh
Merge into: lp:openobject-addons
Diff against target: 11 lines (+1/-0)
1 file modified
account/account_analytic_line.py (+1/-0)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-704469-ssh
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+200174@code.launchpad.net

Description of the change

Hello,

       I have improve the on_change_unit_amount in account .

Thanks
Sunil Sharma

To post a comment you must log in.

Unmerged revisions

9029. By Joël Grand-Guillaume @ camptocamp

[imp]:improve on_change_unit_amount method

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 2013-10-27 12:31:04 +0000
3+++ account/account_analytic_line.py 2013-12-30 05:42:55 +0000
4@@ -118,6 +118,7 @@
5 # price_get() will respect a 'uom' in its context, in order
6 # to return a default price for those units
7 ctx['uom'] = unit
8+ ctx['currency_id'] = self.pool.get('res.company').browse(cr,uid,company_id).currency_id.id
9 amount_unit = prod.price_get(pricetype.field, context=ctx)[prod.id]
10 prec = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
11 amount = amount_unit * quantity or 0.0

Subscribers

People subscribed via source and target branches

to all changes: