diff options
| author | Raphael Collet <rco@odoo.com> | 2018-03-26 10:37:53 +0200 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2018-03-30 11:01:08 +0200 |
| commit | 31025540c49dc236fe33d329a5802660237ca521 (patch) | |
| tree | 3a8fe56ace643c0255e26aee9a199f3b811b6049 /addons/web/static/src/js/widgets/debug_manager.js | |
| parent | fce1a799fc688771d9247673bccccf186063297d (diff) | |
[IMP] models: user-specified field aggregator in `read_group`
The caller of `read_group` can now provide the aggregating function to use for
a given field:
# set aggregating operator for fields 'foo' and 'bar'
model.read_group(domain, ['foo:sum', 'bar:avg'], ...)
One can also aggregate the same field several times, by giving a specific
output name for each:
# aggregate 'foo' with both 'min' and 'max'
model.read_group(domain, ['foomin:min(foo)', 'foomax:max(foo)'], ...)
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
0 files changed, 0 insertions, 0 deletions
