In party.party I created the following field:
sales = fields.Function(fields.One2Many(‘sale.sale’), ‘get_sales’)
The user has rights for creating new sales but as the field has no setter I expected that sao would not allow the user to change sales. But this is not what happens.
The user cannot create new records or delete them using the o2m field but she can modify some of the fields of the sale and then try to save. Which crashes with an error because no setter field has been defined for the sales field.
Any ideas on how to properly manage that, provided I would prefer not to create a setter method?