[FIX] account: reconciliation: Pass context properly when making RPC call

This way, language formatting is always performed (123.30 becomes 123,30 in French for example).
This commit is contained in:
Hiral Bhavsar
2018-08-23 13:29:41 +02:00
committed by Olivier Colson
parent 7ea67cea2e
commit 5830fcf506
@@ -445,6 +445,7 @@ var StatementModel = BasicModel.extend({
model: 'account.bank.statement.line',
method: 'get_data_for_reconciliation_widget',
args: [ids, excluded_ids],
context: self.context,
})
.then(self._formatLine.bind(self));
},
@@ -1075,6 +1076,7 @@ var StatementModel = BasicModel.extend({
model: 'account.bank.statement.line',
method: 'get_move_lines_for_reconciliation_widget',
args: [line.id, line.st_line.partner_id, excluded_ids, filter, offset, limit],
context: this.context,
})
.then(this._formatMoveLine.bind(this, handle));
},
@@ -1143,6 +1145,7 @@ var ManualModel = StatementModel.extend({
*/
load: function (context) {
var self = this;
this.context = context;
var domain_account_id = [];
if (context && context.company_ids) {
@@ -1433,6 +1436,7 @@ var ManualModel = StatementModel.extend({
model: 'account.move.line',
method: 'get_move_lines_for_manual_reconciliation',
args: args,
context: this.context,
})
.then(this._formatMoveLine.bind(this, handle));
},