mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
account_chart_update: copy inactive tax templates too
In v10, tax templates have an active flag. It is useful to copy them too, letting the user select which one he wants to activate in it's instance.
This commit is contained in:
committed by
GitHub
parent
69b55288e7
commit
c243195f7f
@@ -465,7 +465,8 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
||||
self.tax_ids.unlink()
|
||||
|
||||
# Search for changes between template and real tax
|
||||
for template in self.chart_template_ids.mapped("tax_template_ids"):
|
||||
for template in self.chart_template_ids.\
|
||||
with_context(active_test=False).mapped("tax_template_ids"):
|
||||
# Check if the template matches a real tax
|
||||
tax = self.find_tax_by_templates(template)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user