[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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user