Odoo List view: set column to be always visible

I'm working with Odoo 14 and would like to know if there is an option in XML template to suppress optional="show"/"hide" setting inherited from parent template. For example I have following code in parent template:

<field name="code" optional="show" readonly="1"/>

On a child template I would like to do something like this:

<xpath expr="//field[@name='code']" position="attributes">
    <attribute name="optional">Always on</attribute>
</xpath>

to set the code field to be always on, without option to hide or show the column. Is there any option to do so?



Comments

Popular posts from this blog

Spring Elasticsearch Operations

Network Error and Timeout on Authorize.net JS

Object oriented programming concepts (OOPs)