From 2bda448b75d6e331a54e8900f9226c1afd4faca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 3 Dec 2008 17:33:54 +0100 Subject: [PATCH] Allow to delete move line from payment_lines of invoice for issue636 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index af6f22e79a..d45ef49aea 100644 --- a/invoice.py +++ b/invoice.py @@ -293,7 +293,7 @@ class Invoice(OSV): relation='account.move.line', string='Lines to Pay') payment_lines = fields.Many2Many('account.move.line', 'invoice_payment_lines_rel', 'invoice', 'line', readonly=True, - string='Payment Lines') + string='Payment Lines', ondelete_target='CASCADE') amount_to_pay_today = fields.Function('get_amount_to_pay', type='numeric', digits="(16, currency_digits)", string='Amount to Pay Today')