odoo/odoo#190844

Created by fw-bot
Merged at 1608df9f0f9d95fee06d5069fd6e474fc7dda5f2

Statuses:

label
odoo-dev:18.0-16.0-fix-apply-decoration-field-select-Yr1z-fw
head
8f035c994dd5b1ec9d7524b331ada192a25a07b2
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 ↩