[FIX] account: bank statement currency
If there is no currency set on the journal, the fallback currency must be the currency of the journal company, not the currency of the user company. This would mean that when you change of company, with another currency set, the bank statement change of currency, this is non-sense. opw-670187
This commit is contained in:
@@ -86,7 +86,7 @@ class AccountBankStatement(models.Model):
|
||||
@api.one
|
||||
@api.depends('journal_id')
|
||||
def _compute_currency(self):
|
||||
self.currency_id = self.journal_id.currency_id or self.env.user.company_id.currency_id
|
||||
self.currency_id = self.journal_id.currency_id or self.company_id.currency_id
|
||||
|
||||
@api.one
|
||||
@api.depends('line_ids.journal_entry_ids')
|
||||
|
||||
Reference in New Issue
Block a user