I would like to disable the create add button on a kanban view based on the state of the parent record.
I.e.
<field name="one2manyfield" attrs="{'readonly': [('state','!=','draft')]}">
<kanban> ...... </kanban>
</field>
but it doesn't work, the add button is always displayed and working.
Any workaround ? The same solution works when there is a treeview instead of a kanban inside the field definition.