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