Bhavesh Odedra
9458a598b5
[ADD] auditlog: test case for capture record
3 years ago
Hardik Suthar
75c92bfcc4
[ADD] auditlog: enable to track Unlink record
3 years ago
tslai
3c95c34b8b
[12.0][FIX] Add sudo() to retrieve record vals
4 years ago
Tom Blauwendraat
20dc7da4a9
[IMP] Dont query non-stored related or computed fields on full auditlog, this can slow down the system a lot and gives no useful info
4 years ago
sebalix
0e2f928eb5
[FIX] auditlog: add support for create multi
5 years ago
sebalix
a68087698c
[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).
5 years ago
sebalix
c6a30604b8
[IMP] auditlog: set all fields readonly when the rule is enabled
6 years ago
sebalix
7691a6d5a1
[MIG] auditlog: Migration to 12.0
6 years ago
rgarnau
3236130dec
[add] https
7 years ago
Enric Tobella
25a041e8ef
[MIG] auditlog: Migration to 11.0
7 years ago
Oleg Bulkin
96eea749fa
[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)
8 years ago
Stefan Rijnhart
0bde32948e
[FIX] Request id no longer exists after concurrency rollback
8 years ago
Frédéric Garbely
6c3273aeaa
[MIG] auditlog: Migrated to 10.0
8 years ago
sebalix
8510996def
auditlog - Migrate 'AuditlogRule.create' and 'AuditlogRule.write' methods to the new API
8 years ago
sebalix
49d2d511b2
auditlog - Lint
8 years ago
Holden Rehg
8d7303d33c
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
9 years ago
Holger Brunn
e0a55dcca2
singleton error if we saved the current session two times ( #473 )
* [IMP] index the columns we'll be searching for for every request
* [FIX] singleton error if we saved the current session two times
9 years ago
Sébastien Alix
9155639c76
auditlog - Icon added + README updated (screenshots)
9 years ago
sebalix
bd117312c9
auditlog - Auto-vacuum logs, HTTP requests and HTTP user sessions
9 years ago
sebalix
4f8a91746e
auditlog - Field 'type' renamed to 'log_type'
9 years ago
sebalix
172659c2ba
auditlog - Ability to choose the log type on the rule: Full log (complete but slow) and Fast log (data input only, faster)
9 years ago
Holger Brunn
9e371d114b
turn off prefetching when reding values
9 years ago
sebalix
f78399a352
Module 'auditlog' - Fix pylint check
9 years ago
sebalix
8e73dc957b
Module 'auditlog' - 'display_name' fields added for the user session and HTTP requests models
9 years ago
sebalix
9cb09943a0
Module 'auditlog' - A log can be created with no current HTTP request (unit tests, ir.cron...)
9 years ago
sebalix
5b30bd4540
Module 'auditlog' - Log HTTP user sessions and requests
9 years ago
Holger Brunn
c450238987
[FIX] if someone else has overridden our patched,
method, don't do anything
9 years ago
Holger Brunn
6e203fac25
[FIX] make patched create downgrade correctly to v6.1
9 years ago
Holger Brunn
0c895976cb
[ADD] comment
10 years ago
Holger Brunn
2d87af46ad
[FIX] ie related fields don't have an
ir.model.fields entry
10 years ago
sebalix
3224db2179
[FIX] Module 'auditlog' - Log fields coming from polymorphic inheritances ('_inherits')
10 years ago
sebalix
0388734852
[IMP] Module 'auditlog' - Unsubscribe rules before removing them + Unit tests updated
10 years ago
sebalix
29e8dca93f
[FIX] Module 'auditlog' - Fix lint check
10 years ago
sebalix
3270e49a46
[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)
10 years ago
sebalix
9e1cb23e62
[FIX] Module 'auditlog' - Support 'read' calls with one ID or a list of IDs
10 years ago
sebalix
36630e72bb
[FIX] Module 'auditlog' - Replace 'try/except statement by 'isinstance()' + Add missing field in unit test + Remove a list comprehension
10 years ago
sebalix
b8a905f2c8
[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
10 years ago
sebalix
80b55b1f00
[FIX] Module 'auditlog' - When updating a resource, filter IDs on 2many fields to prevent a 'name_get()' call on potential deleted resources
10 years ago
sebalix
b50bdcce46
[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)
10 years ago
sebalix
d18631bb05
[IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields
10 years ago
sebalix
b69102b2ef
[IMP] Module 'auditlog' - Autoremove 'auditlog.log.line' records when a field is deleted (e.g. migration)
10 years ago
sebalix
b471a922d9
[IMP] Module 'auditlog' - Useless lines of code removed
10 years ago
sebalix
d77977c911
[FIX] Module 'auditlog' - local variable 'ir_model' is assigned to but never used
10 years ago
Holger Brunn
63269a91cb
[FIX] cope with no additional log values
10 years ago
Holger Brunn
fe11e254ea
[ADD] pass old_values to create_log when deleting a record
10 years ago
Holger Brunn
7ef0c97964
[FIX] don't reset caches in register_hook
10 years ago
Holger Brunn
026dc39a78
[IMP] don't make a temporary copy of dict keys
10 years ago
Holger Brunn
d53f4cc6ba
[IMP] cache model and field ids
10 years ago
Holger Brunn
0f35f705da
[ADD] allow overriding modules to pass additional log values
10 years ago
Holger Brunn
f1f610bcd4
[IMP] use new import of _, SUPERUSER_ID
10 years ago