How do we put conditions on options no_create or no_open in the view:
<field name="paper_weight_id" options="{'no_open':my_condition_here_1, 'no_create': my_condition_here_2}"/>
I know that there is conditional attrs, ex:
<field name="alias_id" ... attrs="{'invisible': [('alias_domain', '=', False)]}"/>
How do i have that for options? Specifically for no_open and no_create?
This is not working:
<field name="paper_weight_id" options="{ 'no_create': [('1', '!=', '1')]}"/>
it evaluates it to True :(
Could you find a solution?