diff --git a/security_rule_not_editable/tools/convert.py b/security_rule_not_editable/tools/convert.py index 7f57f53a2..1a0a3b19e 100644 --- a/security_rule_not_editable/tools/convert.py +++ b/security_rule_not_editable/tools/convert.py @@ -8,11 +8,11 @@ ori_tag_record = xml_import._tag_record -def _tag_record(self, rec): +def _tag_record(self, rec, extra_vals=None): noupdate = self._noupdate if rec.get("model") == "ir.rule": self._noupdate = [False] - ori_tag_record(self, rec) + ori_tag_record(self, rec, extra_vals) if rec.get("model") == "ir.rule": self._noupdate = noupdate diff --git a/setup/security_rule_not_editable/odoo/addons/security_rule_not_editable b/setup/security_rule_not_editable/odoo/addons/security_rule_not_editable new file mode 120000 index 000000000..20b2a413c --- /dev/null +++ b/setup/security_rule_not_editable/odoo/addons/security_rule_not_editable @@ -0,0 +1 @@ +../../../../security_rule_not_editable \ No newline at end of file diff --git a/setup/security_rule_not_editable/setup.py b/setup/security_rule_not_editable/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/security_rule_not_editable/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)