Commit Graph

27 Commits (19c9feca335958284de2877400a4775672f4d2d7)

Author SHA1 Message Date
Raf Ven dcab07e824 [MIG] auditlog: Migration to 17.0 2024-02-19 08:20:02 +01:00
Raf Ven e5c22848ff [IMP] auditlog: pre-commit stuff 2024-02-19 08:20:02 +01:00
BT-anieto 12281f79c9 [16.0][FIX] auditlog: Add/Remove User Group
When adding/removing a group in a user (and tracking a user or a partner), odoo sends a 'reified' val 'in_group_{group_id}'. We must convert this value into the real groups_id one.
2024-02-19 08:20:02 +01:00
SilvioC2C 448cfe42a0 FIX: auditlog consistency with Many2one fields
Odoo allows creating or updating records with values like ``{"many2one_field_id": empty.recordset()}``,
but this crashes when using ``deepcopy``, which fails in recreating the ``api.Environment`` object
attached to the recordset.
This commit should fix the issue by updating the values before passing them to ``deepcopy``.
2023-11-14 15:19:45 +01:00
Stefan Rijnhart 1434cedc89 [MIG] auditlog: Migration to 16.0 2023-11-14 15:19:45 +01:00
Atchuthan Ubendran ef19dfaada Add option to Eliminate user and fields in audit logs 2023-11-14 15:19:45 +01:00
BT-vgabor b499a23a68 [MIG] auditlog: Migration to 15.0 2023-11-14 15:19:45 +01:00
BT-vgabor 1713ad5d6c [IMP] auditlog: black, isort, prettier 2023-11-14 15:19:45 +01:00
Bhavesh Odedra d6186882c4 [ADD] auditlog: test case for capture record 2023-11-14 15:19:45 +01:00
Pieter Paulussen 9483c8b3c9 [IMP] auditlog: prevent cascading delete of logs when models or fields are unlinked
When a field or a model is unlinked, keep the related audit logs. Denormalize
the field and model info on the logs and log lines so that the information
is still available after the deletion of the related data model.

Also, to improve the performance of the deletion of fields and models,
add indexes on the log's model_id and log line's field_id.

Co-Authored-By: Stefan Rijnhart <stefan@opener.am>
2023-11-14 15:19:45 +01:00
sebalix 4d2563f730 [FIX] auditlog: add support for create multi 2023-11-14 15:19:45 +01:00
Raf Ven 3491f6876e [IMP] auditlog: black, isort, prettier 2023-11-14 15:19:45 +01:00
sebalix a1dd8ec951 [MIG] auditlog: Migration to 12.0 2023-11-14 15:19:44 +01:00
rgarnau b265568ba1 [add] https 2023-11-14 15:19:44 +01:00
Enric Tobella fe82a64ac4 [MIG] auditlog: Migration to 11.0 2023-11-14 15:19:44 +01:00
Frédéric Garbely f5cc6a9ac9 [MIG] auditlog: Migrated to 10.0 2023-11-14 15:19:44 +01:00
Sébastien Alix 9bcbe57e7d auditlog - Icon added + README updated (screenshots) 2023-11-14 15:19:44 +01:00
sebalix 878441e622 auditlog - Ability to choose the log type on the rule: Full log (complete but slow) and Fast log (data input only, faster) 2023-11-14 15:19:44 +01:00
sebalix 24e4d2315f [IMP] Module 'auditlog' - Remove the unit test causing trouble with Travis CI 2023-11-14 15:19:44 +01:00
sebalix cbab6b1cca [IMP] Module 'auditlog' - Unsubscribe rules before removing them + Unit tests updated 2023-11-14 15:19:44 +01:00
sebalix 0fc9de4682 [FIX] Module 'auditlog' - Unit tests, do not create users with the 'notify_email' field 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 0069c7175a [IMP] Module 'auditlog' - Add a test regarding a resource deleted through a (2, ID) tuple on a write operation 2023-11-14 15:19:44 +01:00
sebalix 388e7368d9 [IMP] Module 'auditlog' - Added a second test using cached data generated during the first test 2023-11-14 15:19:44 +01:00
Holger Brunn 0b2dfdf2e1 [IMP] use a model for test that is not influenced by the mail module 2023-11-14 15:19:44 +01:00
Holger Brunn e2cd564bd3 [ADD] tests 2023-11-14 15:19:44 +01:00