From 46e1e658dfa5d8e5ab2bcc27ec611da080987cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 24 Jul 2008 18:29:15 +0200 Subject: [PATCH] Set ondelete CASCADE on payment term line for issue207 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),