Skip to content

Commit 8b58fbf

Browse files
committed
[FIX] base: make _MODES immutable
1 parent c333f97 commit 8b58fbf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

odoo/addons/base/models/ir_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class IrRule(models.Model):
1313
_name = 'ir.rule'
1414
_description = 'Record Rule'
1515
_order = 'model_id DESC,id'
16-
_MODES = ['read', 'write', 'create', 'unlink']
16+
_MODES = ('read', 'write', 'create', 'unlink')
1717
_allow_sudo_commands = False
1818

1919
name = fields.Char(index=True)

0 commit comments

Comments
 (0)