From 004b9c9a849f2f92e3ed4eb192531780e15a0a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sun, 9 Sep 2012 13:45:15 +0200 Subject: [PATCH] create invoice: changing journal changes company too lp bug: https://launchpad.net/bugs/1047884 fixed bzr revid: stephane.bidoul@acsone.eu-20120909114515-mbilk7jv2aj1mn9x --- addons/account/account_invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/account/account_invoice.py b/addons/account/account_invoice.py index 15027b7a8f6..e925e87c136 100644 --- a/addons/account/account_invoice.py +++ b/addons/account/account_invoice.py @@ -503,8 +503,10 @@ class account_invoice(osv.osv): if journal_id: journal = self.pool.get('account.journal').browse(cr, uid, journal_id, context=context) currency_id = journal.currency and journal.currency.id or journal.company_id.currency_id.id + company_id = journal.company_id.id result = {'value': { 'currency_id': currency_id, + 'company_id': company_id, } } return result