mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: Proper is_recurring_note compute method
Before, the compute method had the same name as the field.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
{
|
||||
'name': 'Recurring - Contracts Management',
|
||||
'version': '12.0.7.2.2',
|
||||
'version': '12.0.7.2.3',
|
||||
'category': 'Contract Management',
|
||||
'license': 'AGPL-3',
|
||||
'author': "OpenERP SA, "
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user