I have Many2one field witch is populated by res.partner module using custom domain.
When User selects one of values from Many2one field, I want to hide some fields based on selected value.
I try this:
<group string="My group name" attrs="{'invisible': [('mym2ofield', 'not ilike', 'mym2ofield value')]}">
But it does not work. How could I achieve it then?