Skip to content
Snippets Groups Projects
Commit 0088bd57 authored by Anthony Muschang's avatar Anthony Muschang Committed by Arthur Maniet
Browse files

[FIX] account_analytic_plans: take analytic distribution into account when...

[FIX] account_analytic_plans: take analytic distribution into account when creating a move line from bank statement reconciliation
parent 5d58b555
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,14 @@ instance.web.account.bankStatementReconciliation.include({
return this._super().then(function() {
});
},
});
instance.web.account.bankStatementReconciliationLine.include({
prepareCreatedMoveLineForPersisting: function(line) {
var dict = this._super(line);
if (line.analytics_id) dict['analytics_id'] = line.analytics_id;
if (dict["analytic_account_id"] !== undefined) delete dict["analytic_account_id"];
return dict;
},
});
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment