summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2018-04-26 13:33:55 +0200
committerjem-odoo <jem@openerp.com>2018-05-08 11:17:54 +0200
commitaee95705d2f51750d0b701620ca277f7ff482bec (patch)
treeda312a03bfd0d3b88dc80a670c30372902812e77 /addons/web/static/src/js/views/basic/basic_controller.js
parenta0f8a060790fc4920fc7384105ecac0b2a5254bb (diff)
[FIX] sale: normalize domain is smart
When manipulating domain, this is always better to normalize them, otherwise we can have strange behavior when handleing them with `expression.OR` and `expression.AND`. For instance: domain = [('so_line', 'in', [91]), ('amount', '<=', 0.0)] timesheet_domain = ['&', ('so_line', 'in', []), ('project_id', '!=', False)] `expresion.OR(domain, timesheet_domain)` will give ['|', ('so_line', 'in', [91]), ('amount', '<=', 0.0), '&', ('so_line', 'in', []), ('project_id', '!=', False)] And this is not what we attempt. Closes #24038
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions