We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82d37dd commit e447224Copy full SHA for e447224
1 file changed
auditlog_security/models/auditlog_rule.py
@@ -56,7 +56,7 @@ def _get_fields_of_rule(rule):
56
def _get_view_log_lines_action(self, rule_id=None):
57
rule = self.sudo().browse(rule_id)
58
domain = [
59
- ('model_id', '=', self.model_id.id),
+ ('model_id', '=', rule.model_id.id),
60
('res_id', 'in', self.env.context.get('active_ids')),
61
]
62
field_ids = rule._get_fields_of_rule()
0 commit comments