Add ondelete_target CASCADE for payment_lines on invoice for issue694
This commit is contained in:
1 parent
1ef82ba7e3
commit
eba830a2e5
1 file changed
+1
-1
+1
-1
@@ -289,7 +289,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')
|
||||
ondelete_target='CASCADE', string='Payment Lines')
|
||||
amount_to_pay_today = fields.Function('get_amount_to_pay',
|
||||
type='numeric', digits="(16, currency_digits)",
|
||||
string='Amount to Pay Today')
|
||||
|
||||
Reference in new issue
Block a user