Commit Graph

17 Commits (45daa1dd0117ed9b6a3dc9deed8c29272f3ed945)

Author SHA1 Message Date
sebalix 45daa1dd01 [FIX] Module 'auditlog' - When updating a resource, filter IDs on 2many fields to prevent a 'name_get()' call on potential deleted resources 2020-03-24 08:28:15 +01:00
sebalix cc076280f5 [FIX] Module 'auditlog' - Data dictionaries of fields and models are put in the cache instead of recordsets (a recordset contains a reference on the database cursor which is closed after each RPC query) 2020-03-24 08:28:15 +01:00
sebalix cdac4b7f4a [IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields 2020-03-24 08:28:15 +01:00
sebalix 47a46623bf [IMP] Module 'auditlog' - Useless lines of code removed 2020-03-24 08:28:15 +01:00
sebalix 505214a6d9 [FIX] Module 'auditlog' - local variable 'ir_model' is assigned to but never used 2020-03-24 08:28:15 +01:00
Holger Brunn 5cd341313f [FIX] cope with no additional log values 2020-03-24 08:28:15 +01:00
Holger Brunn 3c6b0805be [ADD] pass old_values to create_log when deleting a record 2020-03-24 08:28:15 +01:00
Holger Brunn 3e7c364579 [FIX] don't reset caches in register_hook 2020-03-24 08:28:15 +01:00
Holger Brunn 7ef9b3d5fa [IMP] don't make a temporary copy of dict keys 2020-03-24 08:28:15 +01:00
Holger Brunn 387b51672b [IMP] cache model and field ids 2020-03-24 08:28:15 +01:00
Holger Brunn 1d6f5a30f4 [ADD] allow overriding modules to pass additional log values 2020-03-24 08:28:15 +01:00
Holger Brunn bd01a8a0ce [IMP] use new import of _, SUPERUSER_ID 2020-03-24 08:28:15 +01:00
Holger Brunn bf92d38bdd [IMP] ignore rules for nonexisting objects 2020-03-24 08:28:15 +01:00
sebalix 891505ef81 [IMP] Module 'auditlog' - Clean up vim lines 2020-03-24 08:28:15 +01:00
sebalix 38afe342d9 [IMP] Module 'auditlog' - Split the 'create_logs()' method in several ones to make overridding easier 2020-03-24 08:28:15 +01:00
sebalix 51e32b72d6 [FIX] Module 'auditlog' - Fix some flake8 errors 2020-03-24 08:28:15 +01:00
sebalix 19762b1a6d [ADD] Module 'auditlog' - A substitute to the deprecated 'audittrail' module 2020-03-24 08:28:15 +01:00