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 a18baa7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion security_rule_not_editable/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Security Rule not editable",
"summary": "Forbid editing rule form UI force using code",
"version": "16.0.1.0.0",
"version": "14.0.1.0.0",
"category": "Base",
"website": "https://github.com/akretion/ak-odoo-incubator",
"author": " Akretion",
Expand Down
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 a18baa7

Please sign in to comment.