I have a one2many field and I want that field to have create="false" attribute when the state is not in draft
I tried to use attrs="{'create': [('state', 'not in', ['draft'])]}"
but it does not work
I can't use readonly because some groups can still edit it, how can I achieve this? Thank you