From dc6aeaea6681d9be42d6e0a55898df566a220cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= Date: Thu, 3 Nov 2022 12:05:21 +0100 Subject: [PATCH] [FIX] contract: Change pylint disable --- contract/models/contract.py | 3 ++- contract/models/contract_line.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contract/models/contract.py b/contract/models/contract.py index 130221c72..e3ee22c76 100644 --- a/contract/models/contract.py +++ b/contract/models/contract.py @@ -309,10 +309,11 @@ class ContractContract(models.Model): if date_end and all(date_end): contract.date_end = max(date_end) + # pylint: disable=missing-return @api.depends( "contract_line_ids.recurring_next_date", "contract_line_ids.is_canceled", - ) # pylint: disable=missing-return + ) def _compute_recurring_next_date(self): for contract in self: recurring_next_date = contract.contract_line_ids.filtered( diff --git a/contract/models/contract_line.py b/contract/models/contract_line.py index b909f235b..628a3d025 100644 --- a/contract/models/contract_line.py +++ b/contract/models/contract_line.py @@ -106,9 +106,10 @@ class ContractLine(models.Model): readonly=True, ) + # pylint: disable=missing-return @api.depends( "last_date_invoiced", "date_start", "date_end", "contract_id.last_date_invoiced" - ) # pylint: disable=missing-return + ) def _compute_next_period_date_start(self): """Rectify next period date start if another line in the contract has been already invoiced previously when the recurrence is by contract.