From 0bd79f93fd2dd2d382b95d51e068cc8cd308074f Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Wed, 15 Jul 2020 17:46:53 +0200 Subject: [PATCH] [FIX] contract: Proper domain for state "in progress" Previous domain was doing an AND operation over same field (is_auto_renew) with both False/True, which can't be possible. --- contract/__manifest__.py | 2 +- contract/models/contract_line.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 662046fa0..5ccc722cd 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -9,7 +9,7 @@ { 'name': 'Recurring - Contracts Management', - 'version': '12.0.7.2.3', + 'version': '12.0.7.2.4', 'category': 'Contract Management', 'license': 'AGPL-3', 'author': "OpenERP SA, " diff --git a/contract/models/contract_line.py b/contract/models/contract_line.py index d67447965..1526b73f6 100644 --- a/contract/models/contract_line.py +++ b/contract/models/contract_line.py @@ -205,8 +205,8 @@ class ContractLine(models.Model): ('date_end', '>=', today), ('date_end', '=', False), "|", - "&", ('is_auto_renew', '=', True), + "&", ('is_auto_renew', '=', False), ('termination_notice_date', '>', today), ]