Commit Graph

49 Commits

Author SHA1 Message Date
Holger Brunn dac3ae1db4 [FIX] ie related fields don't have an
ir.model.fields entry
2017-12-18 13:16:33 +01:00
Yannick Vaucher c171c626fe Add bug tracker link on README.rst 2017-12-18 13:16:33 +01:00
Alejandro Santana 7d1bb45ec8 [ADD] auditlog: Added Spanish translation. 2017-12-18 13:16:33 +01:00
sebalix 59c37b2e3f [IMP] Module 'auditlog' - Remove the unit test causing trouble with Travis CI 2017-12-18 13:16:33 +01:00
sebalix 5d6e6d2e5a [FIX] Module 'auditlog' - Log fields coming from polymorphic inheritances ('_inherits') 2017-12-18 13:16:33 +01:00
sebalix 38fbf782f5 [IMP] Module 'auditlog' - Unsubscribe rules before removing them + Unit tests updated 2017-12-18 13:16:33 +01:00
sebalix 7d44a02817 [FIX] Module 'auditlog' - Fix lint check 2017-12-18 13:16:33 +01:00
sebalix 0e0911c633 [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) 2017-12-18 13:16:33 +01:00
Martin Schmid 41ef8154a4 [ADD] German translation for auditlog 2017-12-18 13:16:33 +01:00
sebalix 6dfc38f474 [FIX] Module 'auditlog' - Unit tests, do not create users with the 'notify_email' field 2017-12-18 13:16:33 +01:00
sebalix 73b70d7a9d [FIX] Module 'auditlog' - Support 'read' calls with one ID or a list of IDs 2017-12-18 13:16:33 +01:00
sebalix 5c4194188d [FIX] Module 'auditlog' - Replace 'try/except statement by 'isinstance()' + Add missing field in unit test + Remove a list comprehension 2017-12-18 13:16:33 +01:00
sebalix cebaedb8d9 [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 2017-12-18 13:16:33 +01:00
Alexandre Fayolle e62696870f 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.
2017-12-18 13:16:33 +01:00
Holger Brunn d17918672d [ADD] migration script 2017-12-18 13:16:33 +01:00
sebalix 74ac1ff15d [FIX] Module 'auditlog' - When updating a resource, filter IDs on 2many fields to prevent a 'name_get()' call on potential deleted resources 2017-12-18 13:16:33 +01:00
sebalix c2ffbdce8f [IMP] Module 'auditlog' - Add a test regarding a resource deleted through a (2, ID) tuple on a write operation 2017-12-18 13:16:33 +01:00
sebalix f221f62bde [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) 2017-12-18 13:16:33 +01:00
sebalix 688647c138 [IMP] Module 'auditlog' - Added a second test using cached data generated during the first test 2017-12-18 13:16:33 +01:00
sebalix 9af1957d73 [IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and 'field_description' fields changed into related fields 2017-12-18 13:16:33 +01:00
sebalix 9b7a5edcbe [IMP] Module 'auditlog' - Autoremove 'auditlog.log.line' records when a field is deleted (e.g. migration) 2017-12-18 13:16:33 +01:00
sebalix b14655a0db [IMP] Module 'auditlog' - Useless lines of code removed 2017-12-18 13:16:33 +01:00
sebalix 80917cf160 [IMP] Module 'auditlog' - README.rst updated (inform that the audittrail data - if any - are migrated during the installation) 2017-12-18 13:16:33 +01:00
sebalix a5aeb5effc [FIX] Module 'auditlog' - Remove 'active' field from __openerp__.py 2017-12-18 13:16:33 +01:00
Holger Brunn 38beab7104 [IMP] use a model for test that is not influenced by the mail module 2017-12-18 13:16:33 +01:00
sebalix 66ab1810b0 [FIX] Module 'auditlog' - local variable 'ir_model' is assigned to but never used 2017-12-18 13:16:33 +01:00
Holger Brunn 8122b18d38 [ADD] tests 2017-12-18 13:16:33 +01:00
Holger Brunn 81e0045492 [FIX] cope with no additional log values 2017-12-18 13:16:33 +01:00
Holger Brunn 77fa25e639 [ADD] pass old_values to create_log when deleting a record 2017-12-18 13:16:33 +01:00
Holger Brunn 16e2556578 [FIX] don't reset caches in register_hook 2017-12-18 13:16:33 +01:00
Holger Brunn 683c3489eb [IMP] don't make a temporary copy of dict keys 2017-12-18 13:16:33 +01:00
Holger Brunn 2873f6367e [IMP] cache model and field ids 2017-12-18 13:16:33 +01:00
Holger Brunn 34d70c1a38 [ADD] allow overriding modules to pass additional log values 2017-12-18 13:16:33 +01:00
Holger Brunn e81e4bac35 [IMP] use new import of _, SUPERUSER_ID 2017-12-18 13:16:33 +01:00
Holger Brunn 28d76d531a [ADD] change xmlids of legacy rules to point to auditlog.rule 2017-12-18 13:16:33 +01:00
sebalix 2cfe24cf5c [IMP] Module 'auditlog' - Contributors updated in README.rst + AUTHORS.txt file removed 2017-12-18 13:16:33 +01:00
Holger Brunn 7ba854a663 [FIX] also migrate id sequences 2017-12-18 13:16:33 +01:00
Holger Brunn 95f3425a26 [ADD] init hook to migrate from audittrail 2017-12-18 13:16:33 +01:00
Holger Brunn 42bb9dae15 [IMP] ignore rules for nonexisting objects 2017-12-18 13:16:33 +01:00
sebalix 12472c4211 [FIX] Module 'auditlog' - 'time' module imported but unused 2017-12-18 13:16:33 +01:00
sebalix 29ca649b7c [IMP] Module 'auditlog' - README.rst updated (based on the OCA template) 2017-12-18 13:16:33 +01:00
sebalix 1b992bf949 [IMP] Module 'auditlog' - Removed the 'timestamp' field from the 'auditlog.log' model (standard 'create_date' field is used instead) 2017-12-18 13:16:33 +01:00
sebalix d1cfae512b [IMP] Module 'auditlog' - Add 'name' attributes on some filters and other minor fixes 2017-12-18 13:16:33 +01:00
sebalix 9554e4bdb7 [IMP] Module 'auditlog' - Clean up vim lines 2017-12-18 13:16:33 +01:00
sebalix f7b60315ba [IMP] Module 'auditlog' - Split the 'create_logs()' method in several ones to make overridding easier 2017-12-18 13:16:33 +01:00
sebalix 97ec9ec7db [ADD] Module 'auditlog' - 'auditlog.pot' file added 2017-12-18 13:16:33 +01:00
sebalix f4a7814a32 [FIX] Module 'auditlog' - Put the module description in a README.rst file 2017-12-18 13:16:33 +01:00
sebalix d54783a4ab [FIX] Module 'auditlog' - Fix some flake8 errors 2017-12-18 13:16:33 +01:00
sebalix 6c865c87e9 [ADD] Module 'auditlog' - A substitute to the deprecated 'audittrail' module 2017-12-18 13:16:33 +01:00