Skip to content

Conversation

@thomaspaulb
Copy link

No description provided.

@gfcapalbo
Copy link

@thomaspaulb linted XML and added many2many_tags widget to the fields in treeview.
I think that covers it all.

@thomaspaulb
Copy link
Author

@KKamaa TODO here:

  • All users can now see "View Logs" and "View Log Lines", whereas most users should just see "View Log Lines" ---> I propose to create a new security group "View Auditlog logs" that people can have, which allows them to see the "View Logs" button, and we just disable that for most (if not all) people.

  • I see that the auditlog security rules have a "name" field, but it's not editable on the form view and I don't think it makes sense so we could remove it.

@gfcapalbo gfcapalbo force-pushed the 11.0-auditlog_extension branch from eab1c5f to 57cb6b0 Compare July 20, 2022 16:50
@gfcapalbo gfcapalbo force-pushed the 11.0-auditlog_extension branch from 57cb6b0 to 42a3b7e Compare July 20, 2022 16:56
# return with context key so that deletion will not be forbidden
return self.env["ir.rule"].search(
[("auditlog_line_access_rule_id", "in", self.ids)]
)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH why is this a function, we could just make it into a One2many field definition of ir_rule_ids ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this more, this is the access for 1 rule the function is readable. leaving pending.

Pieter Paulussen and others added 2 commits July 26, 2022 13:33
…s are unlinked

When a field or a model is unlinked, keep the related audit logs. Denormalize
the field and model info on the logs and log lines so that the information
is still available after the deletion of the related data model.

Also, to improve the performance of the deletion of fields and models,
add indexes on the log's model_id and log line's field_id.

Co-Authored-By: Stefan Rijnhart <stefan@opener.am>
@gfcapalbo gfcapalbo force-pushed the 11.0-auditlog_extension branch from d968cf6 to 92b0afb Compare July 26, 2022 12:47
@gfcapalbo gfcapalbo force-pushed the 11.0-auditlog_extension branch from c533770 to c3fb342 Compare July 26, 2022 16:06
@gfcapalbo gfcapalbo force-pushed the 11.0-auditlog_extension branch from e447224 to d031f6a Compare July 28, 2022 14:29
@gfcapalbo
Copy link

@thomaspaulb I have implemented what we discussed.
I cannot be sure if there are some "perfoemance degradation bombs" I have not thought about, but i have verified that the ormcache clear is trigger when we change auditlog_line_access_rule_ids.

@gfcapalbo gfcapalbo force-pushed the 11.0-auditlog_extension branch from 4885b60 to b09f5b8 Compare July 28, 2022 16:53
Tom Blauwendraat and others added 5 commits August 19, 2022 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants