[FIX] hr_expense: add default_partner_bank_id in context

The mistake was made in odoo#81904

Instead of 'default_partner_bank_id' we have 'partner_bank_id' in the
context of action_register_payment.

In this commit, we undo that mistake and also backport the change to v15.

task - 2774594

closes odoo/odoo#97886

X-original-commit: 5c8b74bb3bddd67b5a76d37f7d97a1d5d77c00c4
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
sofiagvaladze
2022-08-10 16:08:18 +02:00
parent aa8bfeca0c
commit 19364c79d7
+1 -1
View File
@@ -1222,7 +1222,7 @@ class HrExpenseSheet(models.Model):
'context': {
'active_model': 'account.move',
'active_ids': self.account_move_id.ids,
'partner_bank_id': self.employee_id.bank_account_id.id
'default_partner_bank_id': self.employee_id.bank_account_id.id,
},
'target': 'new',
'type': 'ir.actions.act_window',