summaryrefslogtreecommitdiff
path: root/addons/web/static
diff options
context:
space:
mode:
authorPaul Morelle <pmo@odoo.com>2020-06-12 08:18:55 +0000
committerPaul Morelle <pmo@odoo.com>2020-06-18 10:56:31 +0000
commit0ee0cb57c2fb4194cebbda7bb6ec24026c32eff3 (patch)
treed9dbf8fcd44a12a2ce15d60912a567a9b2b4910a /addons/web/static
parentf979e3e093409fb043ed83b5d6764c272096c923 (diff)
[FIX] base: make NameManager.available_fields a dict
Until version 13.0, ir.ui.view:postprocess_and_fields returned a tuple of a string and a dict of field information. With aae1d578296875a641d1142c0f73279fc134a151, it now returns a defaultdict instead of the dict. This dict comes from NameManager.available_fields, which is initialized as a defaultdict. There is no apparent reason to have a defaultdict in this place, apart from the usage in has_field. Furthermore, using a defaultdict has a side-effect in the search_view computed field of all the ir.actions.act_window. On a database, if you access env.ref('base.paper_format_action').search_view it will contain a stringified dict, and the string default_dict(<class 'dict'>, {...}) is used in place of just {...} under the fields key. closes odoo/odoo#53235 X-original-commit: 4586d0fbf0bdd5959b274611c58df911e50f4ef2 Signed-off-by: Olivier Dony (odo) <odo@openerp.com> Signed-off-by: Paul Morelle <madprog@users.noreply.github.com>
Diffstat (limited to 'addons/web/static')
0 files changed, 0 insertions, 0 deletions