diff options
| author | Aaron Bohy <aab@odoo.com> | 2017-03-22 08:48:36 +0100 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2017-04-11 19:44:38 +0200 |
| commit | 64dd7d54439277a50441ffcef0f1dbe0b0640e1f (patch) | |
| tree | 463675477d2b6d56d3e5cfc53ece44f7af66381a /addons/web/static/src/js/core | |
| parent | f7a8c1b276ed841c02c9aeb5cf0f5e21c32fd33b (diff) | |
[IMP] web: rpc: more permissive API for read_group
This rev. allows to specify some kwargs of read_group directly in
an Object given to kwargs(), instead of explicitly specify them
using the corresponding method (e.g. to specify the context in the
kwargs instead of by calling .withContext().
Diffstat (limited to 'addons/web/static/src/js/core')
| -rw-r--r-- | addons/web/static/src/js/core/rpc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/core/rpc.js b/addons/web/static/src/js/core/rpc.js index a6d314f35a2..bb1b6740048 100644 --- a/addons/web/static/src/js/core/rpc.js +++ b/addons/web/static/src/js/core/rpc.js @@ -264,7 +264,7 @@ var ReadGroupRPCBuilder = SearchRPCBuilder.extend({ * @returns {Object} */ _getParams: function () { - var kwargs = _.extend({}, this._kwargs, { + var kwargs = _.defaults({}, this._kwargs, { context: this._context || {}, domain: this._domain || [], fields: this._fields, |
