-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MIG] Migrate auditlog module from 8.0 to 9.0 #454
Closed
Closed
Changes from 71 commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
a7e708e
[MIG] Migrate auditlog module from 8.0 to 9.0
holdenrehg 233bb87
[UPD] Updated the __openerp__.xml to include the license and images f…
holdenrehg e0284f1
OCA Transbot updated translations from Transifex
oca-transbot e6eb60d
[IMP] Module 'auditlog' - Add 'name' attributes on some filters and o…
sebalix bf62fba
[IMP] Module 'auditlog' - Removed the 'timestamp' field from the 'aud…
sebalix 6bdee78
[IMP] Module 'auditlog' - README.rst updated (based on the OCA template)
sebalix ce173d3
[IMP] ignore rules for nonexisting objects
hbrunn 70cdb3b
[ADD] init hook to migrate from audittrail
hbrunn e52bab7
[FIX] also migrate id sequences
hbrunn d06543d
[IMP] Module 'auditlog' - Contributors updated in README.rst + AUTHOR…
sebalix 4536edf
[ADD] change xmlids of legacy rules to point to auditlog.rule
hbrunn 4b2d3ae
[IMP] use new import of _, SUPERUSER_ID
hbrunn 17daf92
[ADD] allow overriding modules to pass additional log values
hbrunn 01b0d2c
[IMP] cache model and field ids
hbrunn 560e0a9
[FIX] don't reset caches in register_hook
hbrunn 12775dd
[ADD] pass old_values to create_log when deleting a record
hbrunn 0337b54
[FIX] cope with no additional log values
hbrunn 9432caa
[ADD] tests
hbrunn 86d0eb7
[FIX] Module 'auditlog' - local variable 'ir_model' is assigned to bu…
sebalix a89c774
[IMP] use a model for test that is not influenced by the mail module
hbrunn dd0ce7a
[FIX] Module 'auditlog' - Remove 'active' field from __openerp__.py
sebalix 090dbf0
[IMP] Module 'auditlog' - README.rst updated (inform that the audittr…
sebalix 7394b32
[IMP] Module 'auditlog' - Model 'auditlog.log.line', 'field_name' and…
sebalix fc5ef54
[IMP] Module 'auditlog' - Added a second test using cached data gener…
sebalix 634396d
[FIX] Module 'auditlog' - Data dictionaries of fields and models are …
sebalix b6d6e53
[IMP] Module 'auditlog' - Add a test regarding a resource deleted thr…
sebalix 8edd956
[FIX] Module 'auditlog' - When updating a resource, filter IDs on 2ma…
sebalix f8de9f7
Add OCA as author of OCA addons
gurneyalex 03ca23a
[IMP] Module 'auditlog' - Performing logs on 'read' operations + Some…
sebalix f5d2955
[FIX] Module 'auditlog' - Replace 'try/except statement by 'isinstanc…
sebalix d56973d
[FIX] Module 'auditlog' - Support 'read' calls with one ID or a list …
sebalix af45b9e
[FIX] Module 'auditlog' - Unit tests, do not create users with the 'n…
sebalix e6b9991
[ADD] German translation for auditlog
eqms 0c92e6f
[FIX] Module 'auditlog' - No log for internal processing (e.g. 'read'…
sebalix 9407428
[FIX] Module 'auditlog' - Fix lint check
sebalix d8d1972
[IMP] Module 'auditlog' - Unsubscribe rules before removing them + Un…
sebalix 34f4fc5
[FIX] Module 'auditlog' - Log fields coming from polymorphic inherita…
sebalix 48e7ad4
[IMP] Module 'auditlog' - Remove the unit test causing trouble with T…
sebalix e3fee5b
[ADD] auditlog: Added Spanish translation.
785a397
Add bug tracker link on README.rst
yvaucher 1bc243e
[FIX] ie related fields don't have an
hbrunn a88f1d4
[ADD] comment
hbrunn 634ad3b
OCA Transbot updated translations from Transifex
oca-transbot 5bb3e60
[UPD] prefix versions with 8.0
sbidoul da79759
OCA Transbot updated translations from Transifex
oca-transbot b7f7ff8
[IMP] Module 'auditlog' - Log HTTP user sessions and requests
sebalix a8d483e
[IMP] Module 'auditlog' - Bump the version to 1.1.0
sebalix 7ad7f2a
[FIX] Module 'auditlog' - Cleanup XML views (types removed)
sebalix 0307e2c
[FIX] Module 'auditlog' - A log can be created with no current HTTP r…
sebalix 994accf
[FIX] Module 'auditlog' - 'display_name' fields added for the user se…
sebalix ee581f4
[FIX] Module 'auditlog' - Fix pylint check
sebalix c87a77f
[FIX] turn off prefetching when reding values
hbrunn a50b37e
OCA Transbot updated translations from Transifex
oca-transbot c2d26e6
OCA Transbot updated translations from Transifex
oca-transbot 051c8a4
OCA Transbot updated translations from Transifex
oca-transbot 41f8f53
OCA Transbot updated translations from Transifex
oca-transbot f658107
[IMP] auditlog - Ability to choose the log type on the rule: Full log…
sebalix dff0551
[FIX] auditlog - Field 'type' renamed to 'log_type'
sebalix 88c3e05
[IMP] auditlog - Bump version number
sebalix 98de1f2
OCA Transbot updated translations from Transifex
oca-transbot 1438434
[IMP] auditlog - Auto-vacuum logs, HTTP requests and HTTP user sessions
sebalix 5c96df5
OCA Transbot updated translations from Transifex
oca-transbot 1ae139e
OCA Transbot updated translations from Transifex
oca-transbot afcae78
OCA Transbot updated translations from Transifex
oca-transbot d6539fa
OCA Transbot updated translations from Transifex
oca-transbot b174a16
OCA Transbot updated translations from Transifex
oca-transbot caa9ce3
OCA Transbot updated translations from Transifex
oca-transbot d2ec9d2
[IMP] auditlog - Icon added + README updated (screenshots)
sebalix 27b1d15
OCA Transbot updated translations from Transifex
oca-transbot f38edf4
OCA Transbot updated translations from Transifex
oca-transbot 295a36d
[UPD] auditlog module - Merge commit from 8.0
holdenrehg 9eff852
[UPD] auditlog module, Remove duplicate license key from openerp config
holdenrehg 856c84c
[DEL] auditlog: Remove migration from audittrail functionality, this …
holdenrehg 9ebaa60
[DEL] auditlog: Remove pre_init_hook reference from openerp, no pre_i…
holdenrehg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# OpenERP, Open Source Management Solution | ||
# Copyright (C) 2013 ABF OSIELL (<http://osiell.com>). | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as | ||
# published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
# © 2015 ABF OSIELL <http://osiell.com> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
'name': "Audit Log", | ||
'version': "8.0.1.0.0", | ||
'version': "9.0.1.0.0", | ||
'author': "ABF OSIELL,Odoo Community Association (OCA)", | ||
'license': "AGPL-3", | ||
'website': "http://www.osiell.com", | ||
'license': 'AGPL-3', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. two is a crowd already: https://travis-ci.org/OCA/server-tools/jobs/137559872#L433 |
||
'category': "Tools", | ||
'depends': [ | ||
'base', | ||
], | ||
'data': [ | ||
'security/ir.model.access.csv', | ||
'data/ir_cron.xml', | ||
'views/auditlog_view.xml', | ||
'views/http_session_view.xml', | ||
'views/http_request_view.xml', | ||
], | ||
'images': [], | ||
'application': True, | ||
'installable': False, | ||
'installable': True, | ||
'pre_init_hook': 'pre_init_hook', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data noupdate="1"> | ||
|
||
<record id="ir_cron_auditlog_autovacuum" model="ir.cron"> | ||
<field name='name'>Auto-vacuum audit logs</field> | ||
<field name='interval_number'>1</field> | ||
<field name='interval_type'>days</field> | ||
<field name="numbercall">-1</field> | ||
<field name="active" eval="False"/> | ||
<field name="doall" eval="False"/> | ||
<field name="model">auditlog.autovacuum</field> | ||
<field name="function">autovacuum</field> | ||
<field name="args">(180,)</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I set all these image URLs in my last PR, but it seems they do not work properly on apps.odoo.com (https://apps.odoo.com/apps/modules/8.0/auditlog/). We should change them to relative ones like
static/description/IMAGE.png
in order to have them displayed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relative paths do not work when testing. I'll leave these as absolute for now.