From d1290c2cbb3735596b188b38c58ba56bf1306e60 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 1 Apr 2020 19:21:12 +0200 Subject: [PATCH] [FIX] contract: Delete cascade line wizard For avoiding problems while trying to remove the contract/contract line --- contract/__manifest__.py | 2 +- contract/wizards/contract_line_wizard.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 60a41bd35..5f529f00b 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -9,7 +9,7 @@ { 'name': 'Recurring - Contracts Management', - 'version': '12.0.6.0.2', + 'version': '12.0.6.0.3', 'category': 'Contract Management', 'license': 'AGPL-3', 'author': "OpenERP SA, " diff --git a/contract/wizards/contract_line_wizard.py b/contract/wizards/contract_line_wizard.py index f136d36d1..a9fe6cd80 100644 --- a/contract/wizards/contract_line_wizard.py +++ b/contract/wizards/contract_line_wizard.py @@ -25,6 +25,7 @@ class ContractLineWizard(models.TransientModel): string="Contract Line", required=True, index=True, + ondelete="cascade", ) @api.multi