[FIX] account: make register payment works in expense

Before this commit, on the list view of the expenses,
when trying to register payment, there is a traceback.

The reason is that 'views' is a required field on record
 of type 'ir.actions.act_window'.

related: https://github.com/odoo/odoo/pull/109671/
& https://github.com/odoo/odoo/pull/110518/

closes odoo/odoo#113832

Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
This commit is contained in:
det
2023-02-28 18:08:21 +01:00
parent a3e2431073
commit 5c28294dbd
+1
View File
@@ -3443,6 +3443,7 @@ class AccountMove(models.Model):
'name': _('Register Payment'),
'res_model': 'account.payment.register',
'view_mode': 'form',
'views': [[False, 'form']],
'context': {
'active_model': 'account.move',
'active_ids': self.ids,