From 5c28294dbd869a6fee1b38a7fc142fc7c9ff1b61 Mon Sep 17 00:00:00 2001 From: det Date: Tue, 28 Feb 2023 10:24:46 +0000 Subject: [PATCH] [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) --- addons/account/models/account_move.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 97ff29c754d..263200307da 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -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,