[IMP] account_reconciliation_widget: show analytic account on counterpart line

This commit is contained in:
Alexis de Lattre
2022-08-11 00:06:39 +02:00
parent a63e26e6fd
commit 033dedb9b2
6 changed files with 61 additions and 16 deletions

View File

@@ -245,6 +245,9 @@ class AccountBankStatementLine(models.Model):
if aml_dict["move_line"].partner_id.id:
aml_dict["partner_id"] = aml_dict["move_line"].partner_id.id
aml_dict["account_id"] = aml_dict["move_line"].account_id.id
aml_dict["analytic_account_id"] = (
aml_dict["move_line"].analytic_account_id.id or False
)
counterpart_move_line = aml_dict.pop("move_line")
new_aml = aml_obj.with_context(check_move_validity=False).create(aml_dict)