Commit Graph

173 Commits (71352e0496a93b73b9f5e67a0289511da8d08cd3)

Author SHA1 Message Date
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
sebalix bc6e408d8a [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) 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
sebalix 81ee271b21 [IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields 2023-11-14 15:19:44 +01:00
sebalix 0ccef82ff8 [IMP] Module 'auditlog' - Autoremove 'auditlog.log.line' records when a field is deleted (e.g. migration) 2023-11-14 15:19:44 +01:00
sebalix 11e8891a81 [IMP] Module 'auditlog' - Useless lines of code removed 2023-11-14 15:19:44 +01:00
sebalix dbc0b1b5cf [IMP] Module 'auditlog' - README.rst updated (inform that the audittrail data - if any - are migrated during the installation) 2023-11-14 15:19:44 +01:00
sebalix 7b0bf104f6 [FIX] Module 'auditlog' - Remove 'active' field from __openerp__.py 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
sebalix 84128025e7 [FIX] Module 'auditlog' - local variable 'ir_model' is assigned to but never used 2023-11-14 15:19:44 +01:00
Holger Brunn e2cd564bd3 [ADD] tests 2023-11-14 15:19:44 +01:00
Holger Brunn 23af1d3458 [FIX] cope with no additional log values 2023-11-14 15:19:44 +01:00
Holger Brunn e2369a69bf [ADD] pass old_values to create_log when deleting a record 2023-11-14 15:19:44 +01:00
Holger Brunn 8e0095228b [FIX] don't reset caches in register_hook 2023-11-14 15:19:44 +01:00
Holger Brunn 8429b56f87 [IMP] don't make a temporary copy of dict keys 2023-11-14 15:19:44 +01:00
Holger Brunn 5b3f7b4c02 [IMP] cache model and field ids 2023-11-14 15:19:44 +01:00
Holger Brunn 52c2e41d9e [ADD] allow overriding modules to pass additional log values 2023-11-14 15:19:44 +01:00
Holger Brunn 8a4f0b9802 [IMP] use new import of _, SUPERUSER_ID 2023-11-14 15:19:44 +01:00
Holger Brunn abd6bd0a78 [ADD] change xmlids of legacy rules to point to auditlog.rule 2023-11-14 15:19:44 +01:00
sebalix 7ff0735da0 [IMP] Module 'auditlog' - Contributors updated in README.rst + AUTHORS.txt file removed 2023-11-14 15:19:44 +01:00
Holger Brunn a247664728 [FIX] also migrate id sequences 2023-11-14 15:19:44 +01:00
Holger Brunn 63d343ce91 [ADD] init hook to migrate from audittrail 2023-11-14 15:19:44 +01:00
Holger Brunn 1f812b70af [IMP] ignore rules for nonexisting objects 2023-11-14 15:19:44 +01:00
sebalix dc246870c5 [FIX] Module 'auditlog' - 'time' module imported but unused 2023-11-14 15:19:44 +01:00
sebalix 57e3c429b9 [IMP] Module 'auditlog' - README.rst updated (based on the OCA template) 2023-11-14 15:19:44 +01:00
sebalix 2ab70e9eed [IMP] Module 'auditlog' - Removed the 'timestamp' field from the 'auditlog.log' model (standard 'create_date' field is used instead) 2023-11-14 15:19:44 +01:00
sebalix 95b75b6da6 [IMP] Module 'auditlog' - Add 'name' attributes on some filters and other minor fixes 2023-11-14 15:19:44 +01:00
sebalix ec089dd848 [IMP] Module 'auditlog' - Clean up vim lines 2023-11-14 15:19:44 +01:00
sebalix e52c3b329e [IMP] Module 'auditlog' - Split the 'create_logs()' method in several ones to make overridding easier 2023-11-14 15:19:44 +01:00
sebalix 9333a70b59 [ADD] Module 'auditlog' - 'auditlog.pot' file added 2023-11-14 15:19:44 +01:00
sebalix 64f7fc328f [FIX] Module 'auditlog' - Put the module description in a README.rst file 2023-11-14 15:19:44 +01:00
sebalix 390435f20d [FIX] Module 'auditlog' - Fix some flake8 errors 2023-11-14 15:19:44 +01:00
sebalix 58777c5ea5 [ADD] Module 'auditlog' - A substitute to the deprecated 'audittrail' module 2023-11-14 15:19:44 +01:00