Disable new/delete butons in o2m widget without define access rules

In o2m field, I like to disable new and delete buttons, but not edit current records.

Is it possible without define a read/delete access rule (group user)?

I think this is the behaviour if you define readonly=True on o2m field.

1 Like

readonly attribute in field, new/edit/remove buttons are activated in o2m widget (not dissabled):

  • new. All fields is readonly. Ok.
  • edit All fields are editable. Ok
  • remove. You could remove a line. Ko.

I understand that “readonly” attribute is only to read, no edit and not delete.

About documentation:

If True, the field is not editable in the client. Default is False.

https://docs.tryton.org/projects/server/en/latest/ref/models/fields.html#trytond.model.fields.Field.readonly

Ups! I do a mistake in XML. Is readonly=“1” and not readonly=“True”.