|
|
@ -20,17 +20,6 @@ class TaxReturnWizard(models.TransientModel): |
|
|
|
"Please set a year in the past and after you started your odoo accounting." |
|
|
|
) |
|
|
|
) |
|
|
|
# return { |
|
|
|
# "value": { |
|
|
|
# "name": "", |
|
|
|
# }, |
|
|
|
# "warning": { |
|
|
|
# "title": _("Wrong year !"), |
|
|
|
# "massage": _( |
|
|
|
# "Please set a year in the past and after you started your odoo accounting." |
|
|
|
# ), |
|
|
|
# }, |
|
|
|
# } |
|
|
|
|
|
|
|
def execute(self): |
|
|
|
self._check_year() |
|
|
@ -81,7 +70,7 @@ class TaxReturnWizard(models.TransientModel): |
|
|
|
lambda atry: atry.line_id.id in line.sum_line_ids.ids |
|
|
|
).mapped("amount") |
|
|
|
) |
|
|
|
or 0.0 |
|
|
|
or 0 |
|
|
|
) |
|
|
|
- ( |
|
|
|
sum( |
|
|
@ -89,7 +78,7 @@ class TaxReturnWizard(models.TransientModel): |
|
|
|
lambda atry: atry.line_id.id in line.ded_line_ids.ids |
|
|
|
).mapped("amount") |
|
|
|
) |
|
|
|
or 0.0 |
|
|
|
or 0 |
|
|
|
), |
|
|
|
} |
|
|
|
year_atry |= ATRY.create([new_vals]) |
|
|
|