diff --git a/invoice.py b/invoice.py index 693d5b2ddc..b06028dd34 100644 --- a/invoice.py +++ b/invoice.py @@ -141,7 +141,7 @@ class PaymentTermLine(OSV): sequence = fields.Integer('Sequence', help='Use to order lines in ascending order') payment = fields.Many2One('account.invoice.payment_term', 'Payment Term', - required=True) + required=True, ondelete="CASCADE") type = fields.Selection('get_type', 'Type', required=True, on_change=['type']) percent = fields.Numeric('Percent', digits=(16, 8),