Commit Graph

22 Commits (a968f57315064a81871f43e1ce910449ed37bb9c)

Author SHA1 Message Date
sebalix a968f57315 [FIX] Module 'auditlog' - Fix lint check 2023-11-14 15:19:44 +01:00
sebalix a9bb5e1b17 [FIX] Module 'auditlog' - No log for internal processing (e.g. 'read' calls produced by auditlog, either to scan records data or to fetch informations from 'ir.model'/'ir.model.fields' data models if rules are defined on them) 2023-11-14 15:19:44 +01:00
sebalix 8ca62fd59d [FIX] Module 'auditlog' - Support 'read' calls with one ID or a list of IDs 2023-11-14 15:19:44 +01:00
sebalix fba30d2c78 [FIX] Module 'auditlog' - Replace 'try/except statement by 'isinstance()' + Add missing field in unit test + Remove a list comprehension 2023-11-14 15:19:44 +01:00
sebalix cfdeb6ab3c [IMP] Module 'auditlog' - Performing logs on 'read' operations + Some bugfixes to log inherited fields and dummy fields such as 'in_group_X' in 'res.users' model + Unit tests updated 2023-11-14 15:19:44 +01:00
sebalix ba69466dd6 [FIX] Module 'auditlog' - When updating a resource, filter IDs on 2many fields to prevent a 'name_get()' call on potential deleted resources 2023-11-14 15:19:44 +01:00
sebalix bc6e408d8a [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) 2023-11-14 15:19:44 +01:00
sebalix 81ee271b21 [IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields 2023-11-14 15:19:44 +01:00
sebalix 11e8891a81 [IMP] Module 'auditlog' - Useless lines of code removed 2023-11-14 15:19:44 +01:00
sebalix 84128025e7 [FIX] Module 'auditlog' - local variable 'ir_model' is assigned to but never used 2023-11-14 15:19:44 +01:00
Holger Brunn 23af1d3458 [FIX] cope with no additional log values 2023-11-14 15:19:44 +01:00
Holger Brunn e2369a69bf [ADD] pass old_values to create_log when deleting a record 2023-11-14 15:19:44 +01:00
Holger Brunn 8e0095228b [FIX] don't reset caches in register_hook 2023-11-14 15:19:44 +01:00
Holger Brunn 8429b56f87 [IMP] don't make a temporary copy of dict keys 2023-11-14 15:19:44 +01:00
Holger Brunn 5b3f7b4c02 [IMP] cache model and field ids 2023-11-14 15:19:44 +01:00
Holger Brunn 52c2e41d9e [ADD] allow overriding modules to pass additional log values 2023-11-14 15:19:44 +01:00
Holger Brunn 8a4f0b9802 [IMP] use new import of _, SUPERUSER_ID 2023-11-14 15:19:44 +01:00
Holger Brunn 1f812b70af [IMP] ignore rules for nonexisting objects 2023-11-14 15:19:44 +01:00
sebalix ec089dd848 [IMP] Module 'auditlog' - Clean up vim lines 2023-11-14 15:19:44 +01:00
sebalix e52c3b329e [IMP] Module 'auditlog' - Split the 'create_logs()' method in several ones to make overridding easier 2023-11-14 15:19:44 +01:00
sebalix 390435f20d [FIX] Module 'auditlog' - Fix some flake8 errors 2023-11-14 15:19:44 +01:00
sebalix 58777c5ea5 [ADD] Module 'auditlog' - A substitute to the deprecated 'audittrail' module 2023-11-14 15:19:44 +01:00