mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[15.0][FIX] account_chart_update: do not browse rep_line in _update_taxes_pending_for_accounts
This commit is contained in:
committed by
Luis J. Salvatierra
parent
45ad886f0b
commit
b39b008b11
@@ -1071,9 +1071,10 @@ class WizardUpdateChartsAccounts(models.TransientModel):
|
||||
tax.write(vals)
|
||||
done |= tax
|
||||
|
||||
for k, v in todo_dict["account_dict"]["account.tax.repartition.line"].items():
|
||||
for rep_line, v in todo_dict["account_dict"][
|
||||
"account.tax.repartition.line"
|
||||
].items():
|
||||
if v["account_id"]:
|
||||
rep_line = self.env["account.tax.repartition.line"].browse(k)
|
||||
acc_id = self.find_account_by_templates(
|
||||
self.env["account.account.template"].browse(v["account_id"].id)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user