[IMP] base: do not verify ACL on ir.property
Users have no longer access to unlink if not system. Property are accessed via sudo so ACL check is no longer relevant.
This commit is contained in:
@@ -360,8 +360,6 @@ class Property(models.Model):
|
||||
if value == default_value:
|
||||
# avoid prop.unlink(), as it clears the record cache that can
|
||||
# contain the value of other properties to set on record!
|
||||
prop.check_access_rights('unlink')
|
||||
prop.check_access_rule('unlink')
|
||||
self._cr.execute("DELETE FROM ir_property WHERE id=%s", [prop.id])
|
||||
elif value != clean(prop.get_by_record()):
|
||||
prop.write({'value': value})
|
||||
|
||||
Reference in New Issue
Block a user