diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-11-24 12:43:22 +0100 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2017-11-24 14:16:13 +0100 |
| commit | e703d07e6880f2a1d1c27e2339fd21850fc30dc4 (patch) | |
| tree | d3034a380622134dc70b6cedaadb4da70c2ac7d2 /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | 63cd67b0ec7c884be223ffc6fa5f155d068db0a8 (diff) | |
[FIX] web: read_group RPC
Example of failing request:
```
rpc.query({
model: 'link.tracker.click',
method: 'read_group',
args: [[links_domain, ['create_date', '>', interval]], ['country_id']],
kwargs: {groupby:'country_id'},
});
```
The RPC request built contains the following:
```
args: [[["link_id", "=", 1]], ["create_date"]]
kwargs: {groupby: "create_date:day", domain: [], fields: []}
```
This will be interpreted server side as:
```
model.read_group([['link_id', '=', 1]], ['create_date'], groupby=['create_date:day'], domain=[], fields=[])
```
2 arguments match `domain` and `fields`, which causes a crash.
opw-781300
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
