Product duplication and account_category

Then why we set the default value when duplicating? As far as I understand we use the default value for fields which are linked to an access rule. So we are already making the result depend on the access rules by updating the values when we know an access rule exist.

Furthermore, if a new access rule is added for another field the plain (without access) user will get an error when writting a value different than the default one. So I’m wondering if we should manage that in a generic way (clearing the value when the users is not allowed to write on it) instead of using a hard coded default for each field.