[FIX] account_analytic_plans: take analytic distribution into account when creating a move line from bank statement reconciliation
This commit is contained in:
parent
5d58b5551f
commit
0088bd578b
|
@ -30,6 +30,14 @@ instance.web.account.bankStatementReconciliation.include({
|
||||||
return this._super().then(function() {
|
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;
|
||||||
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue