-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[MIG] auditlog: Migration to 12.0 #1556
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
Conversation
… ones to make overridding easier
…itlog.log' model (standard 'create_date' field is used instead)
…S.txt file removed
…ail data - if any - are migrated during the installation)
… a field is deleted (e.g. migration)
… 'field_description' fields changed into related fields
… required for version 9
…ok exists any more
…hods to the new API
* 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)
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/
Tonow-c2c
left a comment
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.
LGTM
| <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> |
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.
Just to know why -1 ?
| _order = "create_date DESC" | ||
|
|
||
| display_name = fields.Char( | ||
| "Name", compute="_compute_display_name", store=True) |
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 prefer in multi line but it's ok like this
chienandalu
left a comment
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 some commits could be squashed to reduce history. Anyway 👍
|
@chienandalu I squashed translations ones the best I could, about the others I don't know if it's easy (to keep authorship especially). |
|
Well, yeah, I meant consecutive commits of the same author :) |
7cd84ed to
c6a3060
Compare
Syncing from upstream OCA/server-tools (16.0)
Supersedes #1392
I know several PR were opened to migrate this module, and the existing one #1392 broke the history of the repository.
This PR also set all rule fields as readonly when the rule is subscribded.