-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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] 9.0 - auditlog #603
[MIG] 9.0 - auditlog #603
Conversation
Thanks for the followup. Please squash all the "OCA Transbot" commits in one, and check Travis status. |
2be6e13
to
d4d8373
Compare
Module tested on runbot (full log, fast log, user session, HTTP requests...), works like expected. Travis fails on the |
As soon as this module is merged I'll port it on 10. |
7c9ad7e
to
d2d6dfa
Compare
@pedrobaeza sorry I didn't see the lint errors, it's fixed now. I also migrated the last methods to the new API, PR ready for reviews now. |
records = self.env[data_model].search( | ||
[('create_date', '<=', fields.Datetime.to_string(deadline))]) | ||
nb_records = len(records) | ||
records.unlink() |
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.
Maybe we need to launch a real "VACUUM" here?
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.
Why not, but I would prefer in a new PR as it's a new feature.
About the VACUUM, I was thinking that Odoo already performs this operation through ir.autovacuum
https://github.com/odoo/odoo/blob/9.0/openerp/addons/base/ir/ir_autovacuum.py but it's not a real VACUUM neither.
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.
Little comment, but overall 👍
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.
Thanks @sebalix - I agree with your eval that adding the actual vacuum should be a separate PR, which would also allow for easy backports
Travis is 🔴 but not on your module and I think it's been resolved already. Restarting build; this can be merged if 🍏 |
d2d6dfa
to
3ee52c7
Compare
PR rebased but it's failing on |
This PR is supposed to fix it: #612 |
… (unit tests, ir.cron...)
…and HTTP requests models
…lete but slow) and Fast log (data input only, faster)
* [IMP] index the columns we'll be searching for for every request * [FIX] singleton error if we saved the current session two times
- 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
…ields These were updated to follow OCA conventions. - License set to AGPL-3 - Images set to empty array
…is not required for version 9
…nit hook exists any more
…e' methods to the new API
3ee52c7
to
29e1860
Compare
Rebased to include #612 , Travis is now green |
OK, merging. Thanks for the PR. |
Syncing from upstream OCA/server-tools (7.0)
Supersedes #454 (no response)
Migration done following the instructions from the wiki + Cherry-picked the commits done by @holdenrehg in #454.