Hi,
I need to override the default_get(self, default_fields) method in order to include a newly created state in the following warning in that function. How can I do that? Thanks in advance
if not invoices or any(invoice.state != 'posted' for invoice in invoices):
raise UserError(_("You can only register payments for open invoices"))