trytond-patches/issue11281003_1.diff

19 lines
662 B
Diff

Index: trytond/trytond/modules/account_invoice_stock/account.py
===================================================================
--- a/trytond/trytond/modules/account_invoice_stock/account.py
+++ b/trytond/trytond/modules/account_invoice_stock/account.py
@@ -13,9 +13,9 @@
__name__ = 'account.invoice.line-stock.move'
invoice_line = fields.Many2One('account.invoice.line', 'Invoice Line',
- required=True, select=True)
+ required=True, select=True, ondelete='CASCADE')
stock_move = fields.Many2One('stock.move', 'Stock Move', required=True,
- select=True)
+ select=True, ondelete='CASCADE')
class InvoiceLine: