Hello There!
At line 391 of basic_view.js the web client saves this property which is later used for rendering widgets.
The way the logic is written, odoo only stores one fieldsInfo['myfield'] per field "name", so the widget that are used to render the fields below, will use always dynamic_attr="bird", because the first "dynamic_attr" gets overwritten by the last one in the arch.
<field name="myfield" dynamic_attr="butterfly" attrs="{'invisible': [('my','=','domain')]"/>
<field name="myfield" dynamic_attr="bird" attrs="{'invisible': [('my','!=','domain')]"/>
The desired outcome here I guess it would be to ignore the field that won't be rendered. How can we achieve this?
Thanks.