diff options
| author | Raphael Collet <rco@odoo.com> | 2020-05-05 12:56:23 +0000 |
|---|---|---|
| committer | Raphael Collet <rco@odoo.com> | 2020-05-20 07:58:59 +0000 |
| commit | dda73afe13f726858876ae4c1b58f1550453d802 (patch) | |
| tree | 127ac2a24a7671b8f69d54774cf29dc0008e1293 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | aed2134b6388258e907f8cb0dbd53857fb32d5c4 (diff) | |
[REF] core: avoid query.tables and replacements in query strings
Instead of merging Query objects (main domain and access rules domains),
which requires renaming aliases in query strings, make `expression` push
its result in an existing Query object. This removes tricky code.
This also avoids using `IrRule.domain_get()`, which has become unsafe,
since it returns a list of tables (for the FROM clause) which does not
include the joins from the generated Query object.
closes odoo/odoo#49999
Related: odoo/enterprise#10126
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
