Can I inherit a defined "ir.ui.view" by its id in JavaScript?
For example, given the following view, Can I modify the target_field of module.model_tree_view in javascript code, like if (model.condition){ $([name="target_field"]).hide()}. If so can you also provide some example codes please, Thank you.
<record model="ir.ui.view" id="module.model_tree_view">
<field name="name">Model List View</field>
<field name="model">module.model</field>
<field name="arch" type="xml">
<tree>
<field name="target_field"/>
</tree>
</field>
</record>
attrs="{'invisible': [('state','=','close')]}" can only set read, edit and invisible. In some use cases, we may want to change the style of a specific element not just hide or show but more fancy way, that is why I ask for the way to do it in javascript instead of XML or python code.
ok got it
The question is exactly how to modify the javascript widget to a specific view id only.