[FIX] contract: Proper is_recurring_note compute method

Before, the compute method had the same name as the field.
This commit is contained in:
Pedro M. Baeza
2020-07-15 17:39:05 +02:00
parent 7cb10b0d5e
commit 2cafe7425a
2 changed files with 3 additions and 2 deletions

View File

@@ -161,7 +161,8 @@ class ContractAbstractContractLine(models.AbstractModel):
else:
return 1
def is_recurring_note(self):
@api.depends("display_type", "note_invoicing_mode")
def _compute_is_recurring_note(self):
for record in self:
record.is_recurring_note = (
record.display_type == 'line_note'