Commit Graph

28 Commits (d18a053750e94f146f931da9d0f565e6e87ffade)

Author SHA1 Message Date
Holger Brunn d18a053750 [FIX] if someone else has overridden our patched,
method, don't do anything
2022-01-31 15:20:58 +01:00
Holger Brunn 352e1eaeef [FIX] make patched create downgrade correctly to v6.1 2022-01-31 15:20:58 +01:00
Holger Brunn f61f817172 [ADD] comment 2022-01-31 15:20:58 +01:00
Holger Brunn e3cd23aeaf [FIX] ie related fields don't have an
ir.model.fields entry
2022-01-31 15:20:58 +01:00
sebalix fa62cc82f8 [FIX] Module 'auditlog' - Log fields coming from polymorphic inheritances ('_inherits') 2022-01-31 15:20:58 +01:00
sebalix 51238c854b [IMP] Module 'auditlog' - Unsubscribe rules before removing them + Unit tests updated 2022-01-31 15:20:58 +01:00
sebalix 838dee0376 [FIX] Module 'auditlog' - Fix lint check 2022-01-31 15:20:58 +01:00
sebalix 5f24dec219 [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) 2022-01-31 15:20:58 +01:00
sebalix d1e445fcf0 [FIX] Module 'auditlog' - Support 'read' calls with one ID or a list of IDs 2022-01-31 15:20:58 +01:00
sebalix 34a9ee77f4 [FIX] Module 'auditlog' - Replace 'try/except statement by 'isinstance()' + Add missing field in unit test + Remove a list comprehension 2022-01-31 15:20:58 +01:00
sebalix 88bd8f19d0 [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 2022-01-31 15:20:58 +01:00
sebalix 0a5b910ea1 [FIX] Module 'auditlog' - When updating a resource, filter IDs on 2many fields to prevent a 'name_get()' call on potential deleted resources 2022-01-31 15:20:58 +01:00
sebalix 42d4f01c9f [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-01-31 15:20:58 +01:00
sebalix 12c510ed9c [IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields 2022-01-31 15:20:58 +01:00
sebalix ca0c68fee9 [IMP] Module 'auditlog' - Useless lines of code removed 2022-01-31 15:20:58 +01:00
sebalix db228206ce [FIX] Module 'auditlog' - local variable 'ir_model' is assigned to but never used 2022-01-31 15:20:58 +01:00
Holger Brunn 21a40ac932 [FIX] cope with no additional log values 2022-01-31 15:20:58 +01:00
Holger Brunn 4ca0ea1fe0 [ADD] pass old_values to create_log when deleting a record 2022-01-31 15:20:58 +01:00
Holger Brunn ef0eda9b3c [FIX] don't reset caches in register_hook 2022-01-31 15:20:58 +01:00
Holger Brunn 5a89e41207 [IMP] don't make a temporary copy of dict keys 2022-01-31 15:20:58 +01:00
Holger Brunn 4d2b273d2e [IMP] cache model and field ids 2022-01-31 15:20:58 +01:00
Holger Brunn 91b449bbfa [ADD] allow overriding modules to pass additional log values 2022-01-31 15:20:58 +01:00
Holger Brunn 038ea14d48 [IMP] use new import of _, SUPERUSER_ID 2022-01-31 15:20:58 +01:00
Holger Brunn df889c51bc [IMP] ignore rules for nonexisting objects 2022-01-31 15:20:58 +01:00
sebalix 98d2cfa52f [IMP] Module 'auditlog' - Clean up vim lines 2022-01-31 15:20:58 +01:00
sebalix e1e3573d66 [IMP] Module 'auditlog' - Split the 'create_logs()' method in several ones to make overridding easier 2022-01-31 15:20:58 +01:00
sebalix 60ef7a6cae [FIX] Module 'auditlog' - Fix some flake8 errors 2022-01-31 15:20:58 +01:00
sebalix 2d43f943be [ADD] Module 'auditlog' - A substitute to the deprecated 'audittrail' module 2022-01-31 15:20:58 +01:00