Set on delete cascade on invoice of payment mean

Closes #15080
This commit is contained in:
Cédric Krier
2026-09-10 10:02:49 +02:00
parent b977d880ce
commit ff14dc4889
+2 -1
View File
@@ -3507,7 +3507,8 @@ class InvoiceTax(sequence_ordered(), ModelSQL, ModelView):
class PaymentMean(ModelSQL, ModelView):
__name__ = 'account.invoice.payment.mean'
invoice = fields.Many2One('account.invoice', "Invoice", required=True)
invoice = fields.Many2One(
'account.invoice', "Invoice", required=True, ondelete='CASCADE')
payees = fields.Function(
fields.Many2Many(
'party.party', None, None, "Payees",