Merge lp:~openerp-dev/openobject-addons/trunk-bug-1192572-ptr into lp:openobject-addons

Proposed by Pariket Trivedi(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1192572-ptr
Merge into: lp:openobject-addons
Diff against target: 12 lines (+1/-1)
1 file modified
account_voucher/account_voucher.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1192572-ptr
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+200064@code.launchpad.net

Description of the change

hello all,

I have fixed payment invoice issue for multi currency.
In account_voucher change retrun value for _get_currency method.
the value change payment_expected_currency fileds.

Thank you,
ptr

To post a comment you must log in.

Unmerged revisions

9028. By Pariket Trivedi(OpenERP)

[FIX]: change retrun value for _get_currency methods.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_voucher/account_voucher.py'
2--- account_voucher/account_voucher.py 2013-10-27 12:31:04 +0000
3+++ account_voucher/account_voucher.py 2013-12-26 11:52:36 +0000
4@@ -166,7 +166,7 @@
5 journal = journal_pool.browse(cr, uid, journal_id, context=context)
6 if journal.currency:
7 return journal.currency.id
8- return self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.currency_id.id
9+ return context.get('payment_expected_currency',self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.currency_id.id)
10
11 def _get_partner(self, cr, uid, context=None):
12 if context is None: context = {}

Subscribers

People subscribed via source and target branches

to all changes: