mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: Proper depends for create_invoice_visibility
Although is not probable that you change these fields once created, a proper dependency chain can save several problems.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
{
|
||||
'name': 'Recurring - Contracts Management',
|
||||
'version': '12.0.7.2.4',
|
||||
'version': '12.0.7.2.5',
|
||||
'category': 'Contract Management',
|
||||
'license': 'AGPL-3',
|
||||
'author': "OpenERP SA, "
|
||||
|
||||
@@ -649,7 +649,13 @@ class ContractLine(models.Model):
|
||||
% line.name
|
||||
)
|
||||
|
||||
@api.depends('recurring_next_date', 'date_start', 'date_end')
|
||||
@api.depends(
|
||||
'display_type',
|
||||
'is_recurring_note',
|
||||
'recurring_next_date',
|
||||
'date_start',
|
||||
'date_end',
|
||||
)
|
||||
def _compute_create_invoice_visibility(self):
|
||||
# TODO: depending on the lines, and their order, some sections
|
||||
# have no meaning in certain invoices
|
||||
|
||||
Reference in New Issue
Block a user