summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/field_wrapper.js
AgeCommit message (Collapse)Author
2020-05-11[FIX] web: list: multi-edition of owl fieldsAaron Bohy
Before this commit, it wasn't possible to multi-edit boolean fields in list views. Actually, it didn't work for fields rendered by Owl components. It only impacted boolean fields because it was the only editable field widget that had already been converted in Owl. It didn't work because of three issues: 1) there is some sort of an hack in basic renderers: we set the attribute '__node' on the field widgets, and this attribute is used for instance by the controller, when it has to handle a multi-edition. It tries to read it from the event's target (typically the field widget). However, with owl components, '__node' was set on the FieldWrapper (wrapping the actual Field Component). 2) the original target (the Owl Component which triggered the event) was lost when the event went through the compatibility layer (for owl Component embedded in legacy widgets). 3) the multi-edition confirm dialog didn't handle Owl field components. Task 2254717 closes odoo/odoo#51044 X-original-commit: 36d23cfcdef3cea3539004ee5bb4479b859b8137 Signed-off-by: Michaƫl Mattiello <mcm-odoo@users.noreply.github.com> Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-31[REF] web: add missing features of abstract fieldMichael Mattiello (mcm)
This commit adds missing features of AbstractField written in owl. task id: 2193996
2020-02-03[ADD] web: add owl AbstractFieldMichael Mattiello (mcm)
This commit adds the new AbstractField class written in owl, meant to be extended by specific Field owl implementations. Note that its API is not complete yet, but it is enough for basic usecases. This commit also adapts the BasicRenderer to instantiate the future new fields that will be written in owl. closes odoo/odoo#43759 Related: odoo/enterprise#7872 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>