[FIX] account: domain on reconciliation model
The `context.company_ids` variable seems mostly empty in the case of the
Manual Reconciliation widget. Therefore, we fetch the current company of
the user in the session.
Complement of e5c8071484
Fixes #28270
opw-1904475
closes odoo/odoo#28541
This commit is contained in:
@@ -1180,8 +1180,9 @@ var ManualModel = StatementModel.extend({
|
||||
});
|
||||
|
||||
var domainReconcile = [];
|
||||
if (context && context.company_ids) {
|
||||
domainReconcile.push(['company_id', 'in', context.company_ids]);
|
||||
var company_ids = context && context.company_ids || [session.company_id]
|
||||
if (company_ids) {
|
||||
domainReconcile.push(['company_id', 'in', company_ids]);
|
||||
}
|
||||
var def_reconcileModel = this._rpc({
|
||||
model: 'account.reconcile.model',
|
||||
|
||||
Reference in New Issue
Block a user