diff options
| author | qsm-odoo <qsm@odoo.com> | 2017-02-15 14:49:18 +0100 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2017-02-16 10:44:41 +0100 |
| commit | 5df7552ce83f6a75a892b7b0941dec253017dc3f (patch) | |
| tree | 6fc301eca8056b8ab0c6a8a04bf218e0213a9600 /setup/setup_dev.py | |
| parent | b7fd6fd9af58eee753828fd8dfd6012e722b5b87 (diff) | |
[FIX] web: properly handle implicit "&" operator in domain selector
In saas-14, domain selector widgets are supposed to be instanciated
with a valid domain.
The problem is that some valid domains were wrongly evaluated. Indeed,
when receiving a domain which does not begin by an operator, the
"DomainTree" widget considered there is an implicit "&" operator that
should be used. This is not enough. Indeed, when evaluating the domain
["|", A, B, C], there is also an implicit "&" despite the fact the
domain starts with an operator ("|"). Because of that, previous
implementation interpreted this domain as ["|", A, "&", B, C] while
it should have been interpreted as ["&", "|", A, B, C].
Note: in master the parsing will be improved to handle wrong domains
and be decoupled of the DomainTree widget.
Diffstat (limited to 'setup/setup_dev.py')
0 files changed, 0 insertions, 0 deletions
