|
@ -20,17 +20,6 @@ class TaxReturnWizard(models.TransientModel): |
|
|
"Please set a year in the past and after you started your odoo accounting." |
|
|
"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): |
|
|
def execute(self): |
|
|
self._check_year() |
|
|
self._check_year() |
|
@ -81,7 +70,7 @@ class TaxReturnWizard(models.TransientModel): |
|
|
lambda atry: atry.line_id.id in line.sum_line_ids.ids |
|
|
lambda atry: atry.line_id.id in line.sum_line_ids.ids |
|
|
).mapped("amount") |
|
|
).mapped("amount") |
|
|
) |
|
|
) |
|
|
or 0.0 |
|
|
|
|
|
|
|
|
or 0 |
|
|
) |
|
|
) |
|
|
- ( |
|
|
- ( |
|
|
sum( |
|
|
sum( |
|
@ -89,7 +78,7 @@ class TaxReturnWizard(models.TransientModel): |
|
|
lambda atry: atry.line_id.id in line.ded_line_ids.ids |
|
|
lambda atry: atry.line_id.id in line.ded_line_ids.ids |
|
|
).mapped("amount") |
|
|
).mapped("amount") |
|
|
) |
|
|
) |
|
|
or 0.0 |
|
|
|
|
|
|
|
|
or 0 |
|
|
), |
|
|
), |
|
|
} |
|
|
} |
|
|
year_atry |= ATRY.create([new_vals]) |
|
|
year_atry |= ATRY.create([new_vals]) |
|
|