[FIX] account_voucher: onchange_journal

In the "Pay invoice" wizard, the period doesn't have to be change when
the payment method is modified.

opw:643791
This commit is contained in:
Goffin Simon 2015-07-08 09:38:48 +02:00
parent d08facdcb5
commit a35af81e6a
1 changed files with 1 additions and 1 deletions

View File

@ -898,7 +898,7 @@ class account_voucher(osv.osv):
else:
currency_id = journal.company_id.currency_id.id
period_ids = self.pool['account.period'].find(cr, uid, context=dict(context, company_id=company_id))
period_ids = self.pool['account.period'].find(cr, uid, dt=date, context=dict(context, company_id=company_id))
vals['value'].update({
'currency_id': currency_id,
'payment_rate_currency_id': currency_id,