odoo/odoo#190788

Created by fw-bot
Merged at c4bfd55b6d211c371e517e79aad874aee27cc3a0

Statuses:

label
odoo-dev:17.0-16.0-fix-apply-decoration-field-select-YtJP-fw
head
c0b8a4efd459964e7c7508af6440932fad4a6c61
merged
9 months ago by JavaScript, Aaron Bohy (aab)
odoo/odoo
16.0 #190763
17.0 #190788
saas-17.2 #190799
saas-17.4 #190826
18.0 #190844
saas-18.2
saas-18.3
saas-18.4
19.0
master #190865

[FW][FIX] web: Field: apply decorations on select

This is a regression since 48ef812a.

Before, the field's views were rendered directly, getting all the decoration classes on them. Since 48ef812a, they are rendered as a child of a parent Field component (a div), which gets the decoration classes instead 1.

The issue was partially fixed by 2f99f7dc, but only for <input/> and <textarea/> elements. The same fix is now applied to the <select/> element.


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #190763


  1. https://github.com/odoo/odoo/blob/60c7b65f/addons/web/static/src/views/fields/field.xml#L4-L8 ↩