mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: Change pylint disable
This commit is contained in:
@@ -309,10 +309,11 @@ class ContractContract(models.Model):
|
|||||||
if date_end and all(date_end):
|
if date_end and all(date_end):
|
||||||
contract.date_end = max(date_end)
|
contract.date_end = max(date_end)
|
||||||
|
|
||||||
|
# pylint: disable=missing-return
|
||||||
@api.depends(
|
@api.depends(
|
||||||
"contract_line_ids.recurring_next_date",
|
"contract_line_ids.recurring_next_date",
|
||||||
"contract_line_ids.is_canceled",
|
"contract_line_ids.is_canceled",
|
||||||
) # pylint: disable=missing-return
|
)
|
||||||
def _compute_recurring_next_date(self):
|
def _compute_recurring_next_date(self):
|
||||||
for contract in self:
|
for contract in self:
|
||||||
recurring_next_date = contract.contract_line_ids.filtered(
|
recurring_next_date = contract.contract_line_ids.filtered(
|
||||||
|
|||||||
@@ -106,9 +106,10 @@ class ContractLine(models.Model):
|
|||||||
readonly=True,
|
readonly=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# pylint: disable=missing-return
|
||||||
@api.depends(
|
@api.depends(
|
||||||
"last_date_invoiced", "date_start", "date_end", "contract_id.last_date_invoiced"
|
"last_date_invoiced", "date_start", "date_end", "contract_id.last_date_invoiced"
|
||||||
) # pylint: disable=missing-return
|
)
|
||||||
def _compute_next_period_date_start(self):
|
def _compute_next_period_date_start(self):
|
||||||
"""Rectify next period date start if another line in the contract has been
|
"""Rectify next period date start if another line in the contract has been
|
||||||
already invoiced previously when the recurrence is by contract.
|
already invoiced previously when the recurrence is by contract.
|
||||||
|
|||||||
Reference in New Issue
Block a user