sebalix
090bd7d20c
[FIX] auditlog: add support for create multi
2020-03-24 09:01:25 +01:00
sebalix
0f990fcbab
[FIX] auditlog: log computed fields stored in db as expected
...
Fixing #1134 .
Odoo stores values of computed fields at the end of the transaction
only, as such performing a 'read()' to make a data snapshot on the record
created in the current transaction doesn't return the expected result
regarding these fields.
Also as a side-effect 'read()' alters the environment cache and break the
values on the record inducing issues in the whole user
transaction/workflow.
This fix replaces the use of 'read()' to do the data snapshot directly
from the cache of the record (computed values are already there).
2020-03-24 08:59:17 +01:00
Raf Ven
a72c87be77
[IMP] auditlog: black, isort, prettier
2020-03-24 08:39:11 +01:00
Eric Lembregts
b4d04b00bd
[MIG] auditlog: Migration to 13.0
2020-03-24 08:28:16 +01:00
sebalix
84a6ccf53d
[MIG] auditlog: Migration to 12.0
2020-03-24 08:28:16 +01:00
rgarnau
b5fe05355d
[add] https
2020-03-24 08:28:15 +01:00
Enric Tobella
8c48775d90
[MIG] auditlog: Migration to 11.0
2020-03-24 08:28:15 +01:00
Oleg Bulkin
e425d98fe7
[FIX] auditlog: Duplicate logging
...
* Update _patch_methods and _revert_methods in auditlog.rule model to properly
track whether a method has already been patched for logging purposes. This
prevents duplicate logs from being produced in various cases (e.g. when a
logging rule is created as part of a module install)
2020-03-24 08:28:15 +01:00
Frédéric Garbely
e1233985db
[MIG] auditlog: Migrated to 10.0
2020-03-24 08:28:15 +01:00
sebalix
47a9c8b6e2
auditlog - Migrate 'AuditlogRule.create' and 'AuditlogRule.write' methods to the new API
2020-03-24 08:28:15 +01:00
Holden Rehg
3ced62ffd9
Migrate auditlog module from 8.0 to 9.0
...
- Update documentation to point to the new auditlog menu locations. These were changed because the 8.0 version was referencing menus that do not exist in 9.0
- Change version from 8.0.X.Y.Z to 9.0.1.0.0
- Make the module installable again
- Remove an unused parameter from pre-migration.py for versioning
- Fix typos and remove commented out blocks of code that were irrelevant
2020-03-24 08:28:15 +01:00
Sébastien Alix
8b98a2c2aa
auditlog - Icon added + README updated (screenshots)
2020-03-24 08:28:15 +01:00
sebalix
6feebcbdf0
auditlog - Field 'type' renamed to 'log_type'
2020-03-24 08:28:15 +01:00
sebalix
bb6af84ebf
auditlog - Ability to choose the log type on the rule: Full log (complete but slow) and Fast log (data input only, faster)
2020-03-24 08:28:15 +01:00
Holger Brunn
bb2ce91a91
turn off prefetching when reding values
2020-03-24 08:28:15 +01:00
sebalix
cb43b87b01
Module 'auditlog' - Fix pylint check
2020-03-24 08:28:15 +01:00
sebalix
55e8393a9f
Module 'auditlog' - Log HTTP user sessions and requests
2020-03-24 08:28:15 +01:00
Holger Brunn
a9590256d2
[FIX] if someone else has overridden our patched,
...
method, don't do anything
2020-03-24 08:28:15 +01:00
Holger Brunn
87a2f7cb0c
[FIX] make patched create downgrade correctly to v6.1
2020-03-24 08:28:15 +01:00
Holger Brunn
67157860ec
[ADD] comment
2020-03-24 08:28:15 +01:00
Holger Brunn
d6a825f4be
[FIX] ie related fields don't have an
...
ir.model.fields entry
2020-03-24 08:28:15 +01:00
sebalix
72c42f7583
[FIX] Module 'auditlog' - Log fields coming from polymorphic inheritances ('_inherits')
2020-03-24 08:28:15 +01:00
sebalix
edbeaa45f2
[IMP] Module 'auditlog' - Unsubscribe rules before removing them + Unit tests updated
2020-03-24 08:28:15 +01:00
sebalix
35f3cc8219
[FIX] Module 'auditlog' - Fix lint check
2020-03-24 08:28:15 +01:00
sebalix
01fe1488df
[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)
2020-03-24 08:28:15 +01:00
sebalix
d245f23c98
[FIX] Module 'auditlog' - Support 'read' calls with one ID or a list of IDs
2020-03-24 08:28:15 +01:00
sebalix
8624d29360
[FIX] Module 'auditlog' - Replace 'try/except statement by 'isinstance()' + Add missing field in unit test + Remove a list comprehension
2020-03-24 08:28:15 +01:00
sebalix
755aadcb8a
[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
2020-03-24 08:28:15 +01:00
sebalix
45daa1dd01
[FIX] Module 'auditlog' - When updating a resource, filter IDs on 2many fields to prevent a 'name_get()' call on potential deleted resources
2020-03-24 08:28:15 +01:00
sebalix
cc076280f5
[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)
2020-03-24 08:28:15 +01:00
sebalix
cdac4b7f4a
[IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields
2020-03-24 08:28:15 +01:00
sebalix
47a46623bf
[IMP] Module 'auditlog' - Useless lines of code removed
2020-03-24 08:28:15 +01:00
sebalix
505214a6d9
[FIX] Module 'auditlog' - local variable 'ir_model' is assigned to but never used
2020-03-24 08:28:15 +01:00
Holger Brunn
5cd341313f
[FIX] cope with no additional log values
2020-03-24 08:28:15 +01:00
Holger Brunn
3c6b0805be
[ADD] pass old_values to create_log when deleting a record
2020-03-24 08:28:15 +01:00
Holger Brunn
3e7c364579
[FIX] don't reset caches in register_hook
2020-03-24 08:28:15 +01:00
Holger Brunn
7ef9b3d5fa
[IMP] don't make a temporary copy of dict keys
2020-03-24 08:28:15 +01:00
Holger Brunn
387b51672b
[IMP] cache model and field ids
2020-03-24 08:28:15 +01:00
Holger Brunn
1d6f5a30f4
[ADD] allow overriding modules to pass additional log values
2020-03-24 08:28:15 +01:00
Holger Brunn
bd01a8a0ce
[IMP] use new import of _, SUPERUSER_ID
2020-03-24 08:28:15 +01:00
Holger Brunn
bf92d38bdd
[IMP] ignore rules for nonexisting objects
2020-03-24 08:28:15 +01:00
sebalix
891505ef81
[IMP] Module 'auditlog' - Clean up vim lines
2020-03-24 08:28:15 +01:00
sebalix
38afe342d9
[IMP] Module 'auditlog' - Split the 'create_logs()' method in several ones to make overridding easier
2020-03-24 08:28:15 +01:00
sebalix
51e32b72d6
[FIX] Module 'auditlog' - Fix some flake8 errors
2020-03-24 08:28:15 +01:00
sebalix
19762b1a6d
[ADD] Module 'auditlog' - A substitute to the deprecated 'audittrail' module
2020-03-24 08:28:15 +01:00