summaryrefslogtreecommitdiff
path: root/odoo/tests
diff options
context:
space:
mode:
authorXavier ALT <xal@odoo.com>2020-06-30 11:31:15 +0000
committerXavier ALT <xal@odoo.com>2020-07-06 09:40:09 +0000
commit2479da0176280d723a5c6f5de1f3be2b77dfb51f (patch)
tree2b3096b2918c80eb0f347fb0511befe37e2b7427 /odoo/tests
parent37f5424593221ccc0c80e68ea4c925fbfa05d9a9 (diff)
[FIX] web: do no try to render filters referencing access restricted fields
In case a field is limited to specific groups on the model, those fields are discarded from `fields_view_get()` but can still be referenced by some filters on the search view causing a traceback (see #53797) Model: ```python class MyModel(models.Model): my_field = fields.Char(groups='base.group_system') ``` Search views: ```xml <search string="My Model"> <filter name="group_myfield" context="{'group_by': 'my_field'}"/> </search> ``` This commit ensure those filter are correctly discarded. OPW-2284621 closes odoo/odoo#54112 X-original-commit: b3452a1863c36290b13e16161e2703d9a3737f0e Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Diffstat (limited to 'odoo/tests')
0 files changed, 0 insertions, 0 deletions