Hi,
I have defined a new One2Many field on sale, which target model it's a
table_query. I've overridden the write method in order to save the
modifications in the origin table, but I don't wan't the users to create
or delete records on the One2Many field, so I didn't override the create
and delete method.
I also added an ir.model.access record for the model, giving only read
and write access to all the users (no group defined on the rule).
Despite all, when I open this One2Many field in the client, the create,
delete and restore buttons are still active, so the user can still
create and delete records from the client. This is confusing, as the new
created records dissapear once saved, and the deleted records reapear on
saving.
There is something I'm missing in order to disable the create and delete
buttons?
Thanks in advance.
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk