Skip to content
This repository was archived by the owner on Feb 16, 2026. It is now read-only.

Commit b54bab8

Browse files
committed
[ADD] fixes
1 parent b97855c commit b54bab8

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

auditlog_security/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
],
1717
"data": [
1818
"views/auditlog_view.xml",
19+
"security/ir.model.access.csv",
1920
],
2021
"application": True,
2122
"installable": True,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
22

3-
from . import auditlog_line_access_rule
43
from . import auditlog_rule
4+
from . import auditlog_line_access_rule
55
from . import ir_rule
66
from . import auditlog_autovacuum

auditlog_security/models/ir_rule.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class IrRule(models.Model):
88
_inherit = "ir.rule"
99

1010
auditlog_line_access_rule_id = fields.Many2one(
11-
"auditlog.access.line.rule",
11+
"auditlog.line.access.rule",
1212
required=False,
1313
index=True,
1414
help="Auditlog line access Rule that generated this ir.rule",
@@ -32,7 +32,7 @@ def create(self, values):
3232
def write(self, vals):
3333
if "auditlog_id" in vals and not self.env.context.get("auditlog_write"):
3434
raise exceptions.ValidationError(
35-
_("""Cannot change auditlog_access_line_rule""")
35+
_("""Cannot change auditlog_line_access_rule""")
3636
)
3737
return super(IrRule, self).write(vals)
3838

0 commit comments

Comments
 (0)