Skip to content

Commit a18baa7

Browse files
committed
[MIG] security_rule_not_editable: Migration to 16.0
1 parent eafb6a0 commit a18baa7

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

security_rule_not_editable/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "Security Rule not editable",
77
"summary": "Forbid editing rule form UI force using code",
8-
"version": "16.0.1.0.0",
8+
"version": "14.0.1.0.0",
99
"category": "Base",
1010
"website": "https://github.com/akretion/ak-odoo-incubator",
1111
"author": " Akretion",

security_rule_not_editable/tools/convert.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
ori_tag_record = xml_import._tag_record
99

1010

11-
def _tag_record(self, rec):
11+
def _tag_record(self, rec, extra_vals=None):
1212
noupdate = self._noupdate
1313
if rec.get("model") == "ir.rule":
1414
self._noupdate = [False]
15-
ori_tag_record(self, rec)
15+
ori_tag_record(self, rec, extra_vals)
1616
if rec.get("model") == "ir.rule":
1717
self._noupdate = noupdate
1818

Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../security_rule_not_editable
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)