summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_renderer.js
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2019-01-18 15:50:29 +0000
committerMartin Geubelle <mge@odoo.com>2019-01-18 16:06:44 +0000
commit212ca45660fff3a379d5d970df246a5760ec38ec (patch)
tree0702c5374243552b2b367b0278b6f96671d2c8f6 /addons/web/static/src/js/views/basic/basic_renderer.js
parent02d3655c7d4deadb799b718bfff6247214902305 (diff)
[FIX] web, *: restore `context` key on search view field
Since the control panel refactoring, the `context` key on a `<field>` in the search view was ignored (like <field name='pricelist' context="{'pricelist': self}". The previous behaviour has been reintroduced and modified a little bit. For way too long, an ugly hack was used to get a numerical value in self. This ugly hack was still present but wasn't working since 8.0 (at least for the numerical value). A counter hack (see odoo/odoo@4a81e8a) was then applied to avoid really using a `selection` widget. To get even more confused, `self` was replaced by the *last* user-specified value. Well, it's time to clean this mess. Now, the `self` key is replaced by an array of user-specified values (by value, we mean the field value i.e. the `id` for a many2one, or the `key` for a selection field). Task 1902826 closes odoo/odoo#30368
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions