Commit Graph

25 Commits

Author SHA1 Message Date
Holger Brunn 2aee2c73f1 [FIX] ie related fields don't have an
ir.model.fields entry
2017-12-18 14:54:46 +01:00
sebalix 3f05490281 [FIX] Module 'auditlog' - Log fields coming from polymorphic inheritances ('_inherits') 2017-12-18 14:54:46 +01:00
sebalix dc71f74d9c [IMP] Module 'auditlog' - Unsubscribe rules before removing them + Unit tests updated 2017-12-18 14:54:46 +01:00
sebalix fe5d10b048 [FIX] Module 'auditlog' - Fix lint check 2017-12-18 14:54:46 +01:00
sebalix 1d4a12bc9f [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) 2017-12-18 14:54:46 +01:00
sebalix 549d9b62cf [FIX] Module 'auditlog' - Support 'read' calls with one ID or a list of IDs 2017-12-18 14:54:46 +01:00
sebalix 7afdfd7c63 [FIX] Module 'auditlog' - Replace 'try/except statement by 'isinstance()' + Add missing field in unit test + Remove a list comprehension 2017-12-18 14:54:46 +01:00
sebalix b7663ceae6 [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 2017-12-18 14:54:46 +01:00
sebalix 75675c4ce0 [FIX] Module 'auditlog' - When updating a resource, filter IDs on 2many fields to prevent a 'name_get()' call on potential deleted resources 2017-12-18 14:54:46 +01:00
sebalix 29dd7b9ff1 [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) 2017-12-18 14:54:46 +01:00
sebalix 9514fdd422 [IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields 2017-12-18 14:54:46 +01:00
sebalix 439549b10d [IMP] Module 'auditlog' - Useless lines of code removed 2017-12-18 14:54:46 +01:00
sebalix 45afce118b [FIX] Module 'auditlog' - local variable 'ir_model' is assigned to but never used 2017-12-18 14:54:46 +01:00
Holger Brunn 1e2009b30d [FIX] cope with no additional log values 2017-12-18 14:54:46 +01:00
Holger Brunn a40708874e [ADD] pass old_values to create_log when deleting a record 2017-12-18 14:54:46 +01:00
Holger Brunn 1a4424df28 [FIX] don't reset caches in register_hook 2017-12-18 14:54:46 +01:00
Holger Brunn 0a97c17436 [IMP] don't make a temporary copy of dict keys 2017-12-18 14:54:46 +01:00
Holger Brunn b8aab57af6 [IMP] cache model and field ids 2017-12-18 14:54:46 +01:00
Holger Brunn be43da3e39 [ADD] allow overriding modules to pass additional log values 2017-12-18 14:54:46 +01:00
Holger Brunn b608b56d33 [IMP] use new import of _, SUPERUSER_ID 2017-12-18 14:54:46 +01:00
Holger Brunn e9c20f7365 [IMP] ignore rules for nonexisting objects 2017-12-18 14:54:46 +01:00
sebalix 3c4c9fc9f0 [IMP] Module 'auditlog' - Clean up vim lines 2017-12-18 14:54:46 +01:00
sebalix 369d541df1 [IMP] Module 'auditlog' - Split the 'create_logs()' method in several ones to make overridding easier 2017-12-18 14:54:46 +01:00
sebalix 9994d7ae4f [FIX] Module 'auditlog' - Fix some flake8 errors 2017-12-18 14:54:46 +01:00
sebalix 51caf7f89f [ADD] Module 'auditlog' - A substitute to the deprecated 'audittrail' module 2017-12-18 14:54:46 +01:00