Commit Graph

70 Commits (5f723b210627f88160c0eee696d815f0b44a6ff5)

Author SHA1 Message Date
sebalix 0ac895c988 [FIX] Module 'auditlog' - When updating a resource, filter IDs on 2many fields to prevent a 'name_get()' call on potential deleted resources 2022-11-18 13:12:57 +01:00
sebalix 6b92a949e8 [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) 2022-11-18 13:12:57 +01:00
sebalix c77e26f78d [IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields 2022-11-18 13:12:57 +01:00
sebalix 7263ad39c4 [IMP] Module 'auditlog' - Autoremove 'auditlog.log.line' records when a field is deleted (e.g. migration) 2022-11-18 13:12:57 +01:00
sebalix a6d98814f5 [IMP] Module 'auditlog' - Useless lines of code removed 2022-11-18 13:12:57 +01:00
sebalix 436c151f9a [FIX] Module 'auditlog' - local variable 'ir_model' is assigned to but never used 2022-11-18 13:12:57 +01:00
Holger Brunn f1073f7ed1 [FIX] cope with no additional log values 2022-11-18 13:12:57 +01:00
Holger Brunn 9e8cd4aa36 [ADD] pass old_values to create_log when deleting a record 2022-11-18 13:12:57 +01:00
Holger Brunn 072533bb95 [FIX] don't reset caches in register_hook 2022-11-18 13:12:57 +01:00
Holger Brunn 3562d9f94e [IMP] don't make a temporary copy of dict keys 2022-11-18 13:12:57 +01:00
Holger Brunn 34111cf235 [IMP] cache model and field ids 2022-11-18 13:12:57 +01:00
Holger Brunn d57115fd40 [ADD] allow overriding modules to pass additional log values 2022-11-18 13:12:57 +01:00
Holger Brunn 57834ae3a7 [IMP] use new import of _, SUPERUSER_ID 2022-11-18 13:12:57 +01:00
Holger Brunn cc83f8b54d [IMP] ignore rules for nonexisting objects 2022-11-18 13:12:57 +01:00
sebalix af0f5d1a61 [FIX] Module 'auditlog' - 'time' module imported but unused 2022-11-18 13:12:57 +01:00
sebalix ae87645d6b [IMP] Module 'auditlog' - Removed the 'timestamp' field from the 'auditlog.log' model (standard 'create_date' field is used instead) 2022-11-18 13:12:57 +01:00
sebalix 54d052fc1d [IMP] Module 'auditlog' - Clean up vim lines 2022-11-18 13:12:57 +01:00
sebalix 886ddfe3a0 [IMP] Module 'auditlog' - Split the 'create_logs()' method in several ones to make overridding easier 2022-11-18 13:12:57 +01:00
sebalix 0ac666a32d [FIX] Module 'auditlog' - Fix some flake8 errors 2022-11-18 13:12:57 +01:00
sebalix 65517c4bcf [ADD] Module 'auditlog' - A substitute to the deprecated 'audittrail' module 2022-11-18 13:12:57 +01:00