Conversation
5d1cde6 to
9f500af
Compare
|
@tom all review fixes done and tested , found more needed features: [ x ] version change |
34ad8c5 to
0afd4f6
Compare
|
ADDED : |
5f5af93 to
d759205
Compare
|
Added: |
642e899 to
18b323d
Compare
|
@tom Needed to add the automatic action as a feature: |
|
removed the "all_fields" boolean , works perfectly without it. |
18b323d to
1401d63
Compare
1401d63 to
3e7e4cd
Compare
|
@thomaspaulb reminder for final approval. |
|
Actually what i meant was to create two actions, view logs, and view log lines. So you can leave the "view logs" action as is. They do different things
May 2, 2022 10:38:52 Giovanni Capalbo (Therp) ***@***.***>:
… ***@***.**** commented on this pull request.
----------------------------------------
In auditlog_security/models/auditlog_rule.py[#4 (comment)]:
> + def _prepare_rule_values(self):
+ domain_force = "[" + " ('log_id.model_id' , '=', %s)," % (self.model_id.id)
+ if self.field_ids:
+ domain_force += "('field_id', 'in', %s)" % (self.field_ids.ids)
+ domain_force += "]"
+ return {
+ "name": "auditlog_extended_%s" % self.id,
+ "model_id": self.env.ref("auditlog.model_auditlog_log_line").id,
+ "groups": [(6, 0, self.group_ids.ids)],
+ "perm_read": True,
+ "domain_force": domain_force,
+ "auditlog_id": self.id,
+ }
+
+ @api.multi
+ def subscribe(self):
Ah! yes , the original is written in a way to make it un-inheritable.
It creates "old" action
and does not return the created action, just true.
In order to preserve inheritance i should
call super
find the action it created and modify the domain with what we want.
will do that ( we just have to modify all actions of the rule after calling super) and we preserve inheritance chain.
—
Reply to this email directly, view it on GitHub[#4 (comment)], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AALF75FFONAXQZMTA2HBQLLVH6IBNANCNFSM5TGIP5TQ].
You are receiving this because you were mentioned.
[data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAArSURBVHic7cEBDQAAAMKg909tDjegAAAAAAAAAAAAAAAAAAAAAAAAAAA+DFFIAAEctgHwAAAAAElFTkSuQmCC###24x24:true###][Tracking image][https://github.com/notifications/beacon/AALF75FVTPDZERRHC6C2Z4DVH6IBNA5CNFSM5TGIP5T2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOHETLOPQ.gif]
|
017e648 to
82e6001
Compare
|
@thomaspaulb added a video showing it working on issue tracker, and added some small cleanups this morning. |
|
|
@thomaspaulb i don;t understand how was the CSV import removed , testing for regressions. |
b54bab8 to
aded99e
Compare
|
@thomaspaulb |
|
Closed in favour of Therp#1 (I can push there too) |
@thomaspaulb first alpha