From 46de099faebe385082a5242914b3e1fbb1623dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Alan=20Ramos=20Rodr=C3=ADguez?= Date: Thu, 29 Oct 2020 10:33:10 -0600 Subject: [PATCH] [MIG] auditlog: Migration to 14.0 --- auditlog/README.rst | 19 ++++++++++--------- auditlog/__manifest__.py | 4 ++-- auditlog/models/rule.py | 1 + auditlog/readme/CONTRIBUTORS.rst | 1 + auditlog/security/ir.model.access.csv | 1 + auditlog/static/description/index.html | 15 ++++++++------- 6 files changed, 23 insertions(+), 18 deletions(-) diff --git a/auditlog/README.rst b/auditlog/README.rst index 8bf7ee77c..22b9aefb3 100644 --- a/auditlog/README.rst +++ b/auditlog/README.rst @@ -14,13 +14,13 @@ Audit Log :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github - :target: https://github.com/OCA/server-tools/tree/13.0/auditlog + :target: https://github.com/OCA/server-tools/tree/14.0/auditlog :alt: OCA/server-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/server-tools-13-0/server-tools-13-0-auditlog + :target: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-auditlog :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/149/13.0 + :target: https://runbot.odoo-community.org/runbot/149/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -39,16 +39,16 @@ Usage Go to `Settings / Technical / Audit / Rules` to subscribe rules. A rule defines which operations to log for a given data model. -.. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/auditlog/static/description/rule.png +.. image:: https://raw.githubusercontent.com/OCA/server-tools/14.0/auditlog/static/description/rule.png Then, check logs in the `Settings / Technical / Audit / Logs` menu. You can group them by user sessions, date, data model or HTTP requests: -.. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/auditlog/static/description/logs.png +.. image:: https://raw.githubusercontent.com/OCA/server-tools/14.0/auditlog/static/description/logs.png Get the details: -.. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/auditlog/static/description/log.png +.. image:: https://raw.githubusercontent.com/OCA/server-tools/14.0/auditlog/static/description/log.png A scheduled action exists to delete logs older than 6 months (180 days) automatically but is not enabled by default. @@ -56,7 +56,7 @@ To activate it and/or change the delay, go to the `Configuration / Technical / Automation / Scheduled Actions` menu and edit the `Auto-vacuum audit logs` entry: -.. image:: https://raw.githubusercontent.com/OCA/server-tools/13.0/auditlog/static/description/autovacuum.png +.. image:: https://raw.githubusercontent.com/OCA/server-tools/14.0/auditlog/static/description/autovacuum.png Known issues / Roadmap ====================== @@ -70,7 +70,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -89,6 +89,7 @@ Contributors * Holger Brunn * Holden Rehg * Eric Lembregts +* Alan Ramos Other credits ~~~~~~~~~~~~~ @@ -108,6 +109,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/server-tools `_ project on GitHub. +This module is part of the `OCA/server-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/auditlog/__manifest__.py b/auditlog/__manifest__.py index 0b0f3781d..6da41da37 100644 --- a/auditlog/__manifest__.py +++ b/auditlog/__manifest__.py @@ -3,10 +3,10 @@ { "name": "Audit Log", - "version": "13.0.1.0.1", + "version": "14.0.1.0.0", "author": "ABF OSIELL,Odoo Community Association (OCA)", "license": "AGPL-3", - "website": "https://github.com/OCA/server-tools/", + "website": "https://github.com/OCA/server-tools", "category": "Tools", "depends": ["base"], "data": [ diff --git a/auditlog/models/rule.py b/auditlog/models/rule.py index 3fdfdcfc4..b852c674d 100644 --- a/auditlog/models/rule.py +++ b/auditlog/models/rule.py @@ -57,6 +57,7 @@ class AuditlogRule(models.Model): required=True, help="Select model for which you want to generate log.", states={"subscribed": [("readonly", True)]}, + ondelete="cascade", ) user_ids = fields.Many2many( "res.users", diff --git a/auditlog/readme/CONTRIBUTORS.rst b/auditlog/readme/CONTRIBUTORS.rst index 7c034bf1f..806e4d82d 100644 --- a/auditlog/readme/CONTRIBUTORS.rst +++ b/auditlog/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Holger Brunn * Holden Rehg * Eric Lembregts +* Alan Ramos diff --git a/auditlog/security/ir.model.access.csv b/auditlog/security/ir.model.access.csv index 32744cc21..47c4c3f51 100644 --- a/auditlog/security/ir.model.access.csv +++ b/auditlog/security/ir.model.access.csv @@ -10,3 +10,4 @@ access_auditlog_log_manager,auditlog_log_manager,model_auditlog_log,base.group_e access_auditlog_log_line_manager,auditlog_log_line_manager,model_auditlog_log_line,base.group_erp_manager,1,1,1,1 access_auditlog_http_session_manager,auditlog_http_session_manager,model_auditlog_http_session,base.group_erp_manager,1,1,1,1 access_auditlog_http_request_manager,auditlog_http_request_manager,model_auditlog_http_request,base.group_erp_manager,1,1,1,1 +access_auditlog_autovacuum,access_auditlog_autovacuum,model_auditlog_autovacuum,base.group_user,1,1,1,1 diff --git a/auditlog/static/description/index.html b/auditlog/static/description/index.html index 1e221639d..50008156d 100644 --- a/auditlog/static/description/index.html +++ b/auditlog/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runbot

This module allows the administrator to log user operations performed on data models such as create, read, write and delete.

Table of contents

@@ -389,18 +389,18 @@ models such as create, Usage

Go to Settings / Technical / Audit / Rules to subscribe rules. A rule defines which operations to log for a given data model.

-https://raw.githubusercontent.com/OCA/server-tools/13.0/auditlog/static/description/rule.png +https://raw.githubusercontent.com/OCA/server-tools/14.0/auditlog/static/description/rule.png

Then, check logs in the Settings / Technical / Audit / Logs menu. You can group them by user sessions, date, data model or HTTP requests:

-https://raw.githubusercontent.com/OCA/server-tools/13.0/auditlog/static/description/logs.png +https://raw.githubusercontent.com/OCA/server-tools/14.0/auditlog/static/description/logs.png

Get the details:

-https://raw.githubusercontent.com/OCA/server-tools/13.0/auditlog/static/description/log.png +https://raw.githubusercontent.com/OCA/server-tools/14.0/auditlog/static/description/log.png

A scheduled action exists to delete logs older than 6 months (180 days) automatically but is not enabled by default. To activate it and/or change the delay, go to the Configuration / Technical / Automation / Scheduled Actions menu and edit the Auto-vacuum audit logs entry:

-https://raw.githubusercontent.com/OCA/server-tools/13.0/auditlog/static/description/autovacuum.png +https://raw.githubusercontent.com/OCA/server-tools/14.0/auditlog/static/description/autovacuum.png

Known issues / Roadmap

@@ -416,7 +416,7 @@ To activate it and/or change the delay, go to the

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

Do not contact contributors directly about support or help with technical issues.

@@ -434,6 +434,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
  • Holger Brunn <hbrunn@therp.nl>
  • Holden Rehg <holdenrehg@gmail.com>
  • Eric Lembregts <eric@lembregts.eu>
  • +
  • Alan Ramos <alan.ramos@jarsa.com.mx>
  • @@ -449,7 +450,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

    OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

    -

    This module is part of the OCA/server-tools project on GitHub.

    +

    This module is part of the OCA/server-tools project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.