mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
Simplify @depends, as suggested by Yannick
This commit is contained in:
committed by
Alexis de Lattre
parent
7c5eb1de52
commit
c19bb72c31
@@ -34,8 +34,7 @@ class ReportIntrastatCommon(models.AbstractModel):
|
|||||||
"and services"
|
"and services"
|
||||||
|
|
||||||
@api.one
|
@api.one
|
||||||
@api.depends(
|
@api.depends('intrastat_line_ids.amount_company_currency')
|
||||||
'intrastat_line_ids', 'intrastat_line_ids.amount_company_currency')
|
|
||||||
def _compute_numbers(self):
|
def _compute_numbers(self):
|
||||||
total_amount = 0.0
|
total_amount = 0.0
|
||||||
num_lines = 0
|
num_lines = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user