[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:
Martin Trigaux
2020-05-26 15:50:11 +02:00
parent a4472b104b
commit 2f26eee981
-2
View File
@@ -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})