Skip to content

Commit

Permalink
[MIG] security_rule_not_editable: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kev-Roche committed Jul 23, 2024
1 parent eafb6a0 commit 465f0cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security_rule_not_editable/tools/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions setup/security_rule_not_editable/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 465f0cb

Please sign in to comment.