mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Merge pull request #663 from OCA/sbidoul-chart_udpate-inactive-tax-templates
account_chart_update: copy inactive tax templates too
This commit is contained in:
@@ -462,7 +462,8 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
||||
found_taxes_ids = []
|
||||
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_id = self.find_tax_by_templates(template)
|
||||
if not tax_id:
|
||||
|
||||
Reference in New Issue
Block a user