Commit Graph

182 Commits (588932052c84529fbd2836701d23e41d95dbed88)

Author SHA1 Message Date
oca-ci efd8bbc307 [UPD] Update auditlog.pot 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
Ignacio Buioli f6174a1063 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (81 of 81 strings)

Translation: server-tools-15.0/server-tools-15.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-15-0/server-tools-15-0-auditlog/es_AR/
2023-11-14 15:19:45 +01:00
OCA-git-bot b7d22e093c [UPD] README.rst 2023-11-14 15:19:45 +01:00
oca-ci 462f50ce78 [UPD] Update auditlog.pot 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
OCA Transbot da184bfec9 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-auditlog/
2023-11-14 15:19:45 +01:00
OCA-git-bot 90a5523011 auditlog 14.0.1.2.0 2023-11-14 15:19:45 +01:00
OCA-git-bot 798a756315 [UPD] README.rst 2023-11-14 15:19:45 +01:00
oca-travis 9f4d185fc7 [UPD] Update auditlog.pot 2023-11-14 15:19:45 +01:00
Kitti U 6c1e18ef00 [14.0][IMP] auditlog, add auditlog.log.line view 2023-11-14 15:19:45 +01:00
OCA Transbot dc840be77b Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-auditlog/
2023-11-14 15:19:45 +01:00
OCA-git-bot 911636064e [UPD] README.rst 2023-11-14 15:19:45 +01:00
oca-travis bf1dfebc7d [UPD] Update auditlog.pot 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
Bhavesh Odedra 43692669b7 [ADD] auditlog: enable to track Unlink record 2023-11-14 15:19:45 +01:00
OCA-git-bot 35b37734d2 auditlog 14.0.1.1.1 2023-11-14 15:19:45 +01:00
Stefan Rijnhart 46f808843c [FIX] auditlog: invalid XML
Fixes #2086
2023-11-14 15:19:45 +01:00
OCA Transbot c7a3fb79ec Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-14.0/server-tools-14.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-auditlog/
2023-11-14 15:19:45 +01:00
OCA-git-bot 5f59f04127 [UPD] README.rst 2023-11-14 15:19:45 +01:00
oca-travis b1c100427f [UPD] Update auditlog.pot 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
OCA-git-bot a49cc00bab auditlog 14.0.1.0.2 2023-11-14 15:19:45 +01:00
tslai 24da9821e2 [14.0][FIX] Add sudo() to retrieve record vals 2023-11-14 15:19:45 +01:00
OCA-git-bot c354798b57 auditlog 14.0.1.0.1 2023-11-14 15:19:45 +01:00
OCA-git-bot dd1970911d [UPD] README.rst 2023-11-14 15:19:45 +01:00
Tom Blauwendraat 65667ad6f1 [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 2023-11-14 15:19:45 +01:00
oca-travis e1e89394c8 [UPD] Update auditlog.pot 2023-11-14 15:19:45 +01:00
Jesús Alan Ramos Rodríguez 46982f89cb [MIG] auditlog: Migration to 14.0 2023-11-14 15:19:45 +01:00
Jesús Alan Ramos Rodríguez 4a00e3d7d8 [IMP] auditlog: black, isort, prettier 2023-11-14 15:19:45 +01:00
OCA-git-bot 18baefbb9f auditlog 13.0.1.0.1 2023-11-14 15:19:45 +01:00
OCA-git-bot 2aa7cc7eb6 [UPD] README.rst 2023-11-14 15:19:45 +01:00
Eduardo Magdalena 70c5694ba6 [FIX] Readme Images relative path 2023-11-14 15:19:45 +01:00
OCA Transbot 5723365d97 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-13.0/server-tools-13.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-auditlog/
2023-11-14 15:19:45 +01:00
OCA-git-bot 051c245a23 [UPD] README.rst 2023-11-14 15:19:45 +01:00
oca-travis 4fd4ee8d4d [UPD] Update auditlog.pot 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
sebalix a2c7f44100 [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).
2023-11-14 15:19:45 +01:00
Raf Ven 3491f6876e [IMP] auditlog: black, isort, prettier 2023-11-14 15:19:45 +01:00
Eric Lembregts 7449216078 [MIG] auditlog: Migration to 13.0 2023-11-14 15:19:45 +01:00
黎伟杰 8e92c483ea Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (70 of 70 strings)

Translation: server-tools-12.0/server-tools-12.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-auditlog/zh_CN/
2023-11-14 15:19:45 +01:00
OCA-git-bot accbe38bcb [UPD] README.rst
[UPD] Update auditlog.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-12.0/server-tools-12.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-auditlog/

[UPD] README.rst
2023-11-14 15:19:45 +01:00
sebalix a1dd8ec951 [MIG] auditlog: Migration to 12.0 2023-11-14 15:19:44 +01:00
Rodrigo Macedo d759764fdd Translated using Weblate
Currently translated at 100,0% (70 of 70 strings)

Translation: server-tools-11.0/server-tools-11.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-11-0/server-tools-11-0-auditlog/pt_BR/
2023-11-14 15:19:44 +01:00
oca-travis 772e7bb1b0 [UPD] Update auditlog.pot 2023-11-14 15:19:44 +01:00
Stéphane Bidoul (ACSONE) 73c09f8d06 remove obsolete .pot files [ci skip] 2023-11-14 15:19:44 +01:00
OCA Transbot ccd783ec3f OCA Transbot updated translations from Transifex 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
OCA Transbot ccf3984952 OCA Transbot updated translations from Transifex 2023-11-14 15:19:44 +01:00
Oleg Bulkin f17eb0ec3d [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)
2023-11-14 15:19:44 +01:00
Stefan Rijnhart 7cbff56bcf [FIX] Request id no longer exists after concurrency rollback 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
sebalix 25a9ab8f25 auditlog - Migrate 'AuditlogRule.create' and 'AuditlogRule.write' methods to the new API 2023-11-14 15:19:44 +01:00
sebalix 587928146c auditlog - Lint 2023-11-14 15:19:44 +01:00
Holden Rehg 56e6bd02d9 auditlog: Remove pre_init_hook reference from openerp, no pre_init hook exists any more 2023-11-14 15:19:44 +01:00
Holden Rehg af17fe8098 auditlog: Remove migration from audittrail functionality, this is not required for version 9 2023-11-14 15:19:44 +01:00
Holden Rehg 8ae4251c27 auditlog module, Remove duplicate license key from openerp config 2023-11-14 15:19:44 +01:00
Holden Rehg 78fd653f43 Updated the __openerp__.xml to include the license and images fields
These were updated to follow OCA conventions.

- License set to AGPL-3
- Images set to empty array
2023-11-14 15:19:44 +01:00
Holden Rehg 4eeebde266 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
2023-11-14 15:19:44 +01:00
Holger Brunn 3c0662a1fc 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
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 4dbecc0604 auditlog - Auto-vacuum logs, HTTP requests and HTTP user sessions 2023-11-14 15:19:44 +01:00
sebalix 8253dadea2 auditlog - Bump version number 2023-11-14 15:19:44 +01:00
sebalix 2c4b156b1f auditlog - Field 'type' renamed to 'log_type' 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
Holger Brunn bbe6d6f02f turn off prefetching when reding values 2023-11-14 15:19:44 +01:00
sebalix fe1d3307b4 Module 'auditlog' - Fix pylint check 2023-11-14 15:19:44 +01:00
sebalix db552b90a1 Module 'auditlog' - 'display_name' fields added for the user session and HTTP requests models 2023-11-14 15:19:44 +01:00
sebalix c4fa4f30d9 Module 'auditlog' - A log can be created with no current HTTP request (unit tests, ir.cron...) 2023-11-14 15:19:44 +01:00
sebalix 9d8b7652f5 Module 'auditlog' - Cleanup XML views (types removed) 2023-11-14 15:19:44 +01:00
sebalix 1af31726a8 Module 'auditlog' - Bump the version to 1.1.0 2023-11-14 15:19:44 +01:00
sebalix 7099a27a29 Module 'auditlog' - Log HTTP user sessions and requests 2023-11-14 15:19:44 +01:00
Pedro M. Baeza cdf36b4f92 [MIG] Rename manifest files 2023-11-14 15:19:44 +01:00
Stéphane Bidoul (ACSONE) 9ba0311991 [FIX] remove en.po that was erroneously created by transbot 2023-11-14 15:19:44 +01:00
Pedro M. Baeza 1c61f76380 [MIG] Make modules uninstallable 2023-11-14 15:19:44 +01:00
Stéphane Bidoul e88bb57fe5 [UPD] prefix versions with 8.0 2023-11-14 15:19:44 +01:00
OCA Transbot c8b260b04c OCA Transbot updated translations from Transifex 2023-11-14 15:19:44 +01:00
Holger Brunn f89257577d [FIX] if someone else has overridden our patched,
method, don't do anything
2023-11-14 15:19:44 +01:00
Yannick Vaucher 729bedeefb Add missing default oca icons 2023-11-14 15:19:44 +01:00
Holger Brunn 23997966e7 [FIX] make patched create downgrade correctly to v6.1 2023-11-14 15:19:44 +01:00
Holger Brunn e2aa9b149d [ADD] comment 2023-11-14 15:19:44 +01:00
Holger Brunn d32c1b8448 [FIX] ie related fields don't have an
ir.model.fields entry
2023-11-14 15:19:44 +01:00
Yannick Vaucher 943cfd17e9 Add bug tracker link on README.rst 2023-11-14 15:19:44 +01:00
Alejandro Santana 82f394081a [ADD] auditlog: Added Spanish translation. 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 40d9250eca [FIX] Module 'auditlog' - Log fields coming from polymorphic inheritances ('_inherits') 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 a968f57315 [FIX] Module 'auditlog' - Fix lint check 2023-11-14 15:19:44 +01:00
sebalix a9bb5e1b17 [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) 2023-11-14 15:19:44 +01:00
Martin Schmid 84fc0bce3e [ADD] German translation for auditlog 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 8ca62fd59d [FIX] Module 'auditlog' - Support 'read' calls with one ID or a list of IDs 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
Alexandre Fayolle dac2718628 Add OCA as author of OCA addons
In order to get visibility on https://www.odoo.com/apps the OCA board has
decided to add the OCA as author of all the addons maintained as part of the
association.
2023-11-14 15:19:44 +01:00
Holger Brunn cae62e31e8 [ADD] migration script 2023-11-14 15:19:44 +01:00
sebalix ba69466dd6 [FIX] Module 'auditlog' - When updating a resource, filter IDs on 2many fields to prevent a 'name_get()' call on potential deleted resources 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