SilvioC2C
75c20bb7de
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-09-11 12:49:02 +02:00
Stefan Rijnhart
c8671aa35b
[MIG] auditlog: Migration to 16.0
2022-11-18 13:54:56 +01:00
Atchuthan Ubendran
470d8def8a
Add option to Eliminate user and fields in audit logs
2022-11-18 13:12:58 +01:00
BT-vgabor
6dfa4ae522
[MIG] auditlog: Migration to 15.0
2022-11-18 13:12:58 +01:00
BT-vgabor
3059c6b20c
[IMP] auditlog: black, isort, prettier
2022-11-18 13:12:58 +01:00
Bhavesh Odedra
bf727fc6a5
[ADD] auditlog: test case for capture record
2022-11-18 13:12:58 +01:00
Pieter Paulussen
3b73d50906
[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>
2022-11-18 13:12:57 +01:00
sebalix
2fe2d13b21
[FIX] auditlog: add support for create multi
2022-11-18 13:12:57 +01:00
Raf Ven
732654f95f
[IMP] auditlog: black, isort, prettier
2022-11-18 13:12:57 +01:00
sebalix
3487299909
[MIG] auditlog: Migration to 12.0
2022-11-18 13:12:57 +01:00
rgarnau
3959096570
[add] https
2022-11-18 13:12:57 +01:00
Enric Tobella
e3d6d8bbd2
[MIG] auditlog: Migration to 11.0
2022-11-18 13:12:57 +01:00
Frédéric Garbely
4e1e1eacff
[MIG] auditlog: Migrated to 10.0
2022-11-18 13:12:57 +01:00
Sébastien Alix
557d2dfb03
auditlog - Icon added + README updated (screenshots)
2022-11-18 13:12:57 +01:00
sebalix
9808fa08c7
auditlog - Ability to choose the log type on the rule: Full log (complete but slow) and Fast log (data input only, faster)
2022-11-18 13:12:57 +01:00
sebalix
74c0440a28
[IMP] Module 'auditlog' - Remove the unit test causing trouble with Travis CI
2022-11-18 13:12:57 +01:00
sebalix
cc25ff8387
[IMP] Module 'auditlog' - Unsubscribe rules before removing them + Unit tests updated
2022-11-18 13:12:57 +01:00
sebalix
c10f2476a6
[FIX] Module 'auditlog' - Unit tests, do not create users with the 'notify_email' field
2022-11-18 13:12:57 +01:00
sebalix
b0c5e2e2cf
[FIX] Module 'auditlog' - Replace 'try/except statement by 'isinstance()' + Add missing field in unit test + Remove a list comprehension
2022-11-18 13:12:57 +01:00
sebalix
1010b0ac1c
[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-11-18 13:12:57 +01:00
sebalix
21ccb8ce85
[IMP] Module 'auditlog' - Add a test regarding a resource deleted through a (2, ID) tuple on a write operation
2022-11-18 13:12:57 +01:00
sebalix
3df651cde7
[IMP] Module 'auditlog' - Added a second test using cached data generated during the first test
2022-11-18 13:12:57 +01:00
Holger Brunn
1d11e40e33
[IMP] use a model for test that is not influenced by the mail module
2022-11-18 13:12:57 +01:00
Holger Brunn
8b462746e1
[ADD] tests
2022-11-18 13:12:57 +01:00