Maintainers
+Maintainers
This module is maintained by the OCA.
@@ -481,6 +476,5 @@ diff --git a/auditlog/README.rst b/auditlog/README.rst index 6c603514dce..b583c0a7ac0 100644 --- a/auditlog/README.rst +++ b/auditlog/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ========= Audit Log ========= @@ -17,7 +13,7 @@ Audit Log .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :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 diff --git a/auditlog/__manifest__.py b/auditlog/__manifest__.py index b5d9a8bc86f..053c59be9bd 100644 --- a/auditlog/__manifest__.py +++ b/auditlog/__manifest__.py @@ -14,6 +14,7 @@ "security/ir.model.access.csv", "data/ir_cron.xml", "views/auditlog_view.xml", + "views/auditlog_rule_actions.xml", "views/http_session_view.xml", "views/http_request_view.xml", ], diff --git a/auditlog/models/rule.py b/auditlog/models/rule.py index 2cdb4ae8d2d..8042446471b 100644 --- a/auditlog/models/rule.py +++ b/auditlog/models/rule.py @@ -794,6 +794,15 @@ def unsubscribe(self): act_window.unlink() return self.write({"state": "draft"}) + def action_server_bulk_subscribe(self): + """Bulk subscribe rules""" + self.filtered(lambda rule: rule.state != "subscribed").subscribe() + return True + + def action_server_bulk_unsubscribe(self): + self.filtered(lambda rule: rule.state == "subscribed").unsubscribe() + return True + @api.model def _update_vals_list(self, vals_list): # Odoo supports empty recordset assignment (while it doesn't handle diff --git a/auditlog/static/description/index.html b/auditlog/static/description/index.html index 0859b2884b1..a30df380364 100644 --- a/auditlog/static/description/index.html +++ b/auditlog/static/description/index.html @@ -3,7 +3,7 @@
-This module allows the administrator to log user operations performed on data models such as create, read, write and delete.
Table of contents
@@ -393,7 +388,7 @@Go to Settings / Technical / Audit / Rules to subscribe rules. A rule defines which operations to log for a given data model.

- log only operations triggered by some users (currently it logs all @@ -428,7 +423,7 @@
Known issues / Roadmap
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 to smash it by providing a detailed and welcomed @@ -436,15 +431,15 @@
Do not contact contributors directly about support or help with technical issues.