diff --git a/auditlog/README.rst b/auditlog/README.rst index 79a23a257..18d6231b5 100644 --- a/auditlog/README.rst +++ b/auditlog/README.rst @@ -13,14 +13,26 @@ Usage ===== Go to `Reporting / Audit / Rules` to subscribe rules. A rule defines which -operations to log for a given data model. -Then, check logs in the `Reporting / Audit / Logs` menu. +operations to log for a given data model: + +.. image:: /auditlog/static/description/rule.png + +Then, check logs in the `Reporting / Audit / Logs` menu. You can group them by +user sessions, date, data model or HTTP requests: + +.. image:: /auditlog/static/description/logs.png + +Get the details: + +.. image:: /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. +`Auto-vacuum audit logs` entry: + +.. image:: /auditlog/static/description/autovacuum.png During installation, a one-time script will migrate any existing data from the `audittrail` module (rules and logs). @@ -49,6 +61,11 @@ Contributors * Sebastien Alix * Holger Brunn +Images +------ + +* Icon: built with different icons from the `Oxygen theme `_ (LGPL) + Maintainer ---------- diff --git a/auditlog/__init__.py b/auditlog/__init__.py index ae4e80c04..a53cc8f01 100644 --- a/auditlog/__init__.py +++ b/auditlog/__init__.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2013 ABF OSIELL (). -# -# 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 . -# -############################################################################## +# © 2015 ABF OSIELL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import models diff --git a/auditlog/__openerp__.py b/auditlog/__openerp__.py index e24de936c..223f23e79 100644 --- a/auditlog/__openerp__.py +++ b/auditlog/__openerp__.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2013 ABF OSIELL (). -# -# 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 . -# -############################################################################## +# © 2015 ABF OSIELL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { 'name': "Audit Log", diff --git a/auditlog/migrations/8.0.1.0/pre-migration.py b/auditlog/migrations/8.0.1.0/pre-migration.py index 3fe51e77c..9cd91bfb8 100644 --- a/auditlog/migrations/8.0.1.0/pre-migration.py +++ b/auditlog/migrations/8.0.1.0/pre-migration.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV (). -# -# 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 . -# -############################################################################## +# © 2015 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp.addons.auditlog import migrate_from_audittrail diff --git a/auditlog/models/__init__.py b/auditlog/models/__init__.py index 12345359e..ce5b89899 100644 --- a/auditlog/models/__init__.py +++ b/auditlog/models/__init__.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2013 ABF OSIELL (). -# -# 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 . -# -############################################################################## +# © 2015 ABF OSIELL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import rule from . import http_session diff --git a/auditlog/models/autovacuum.py b/auditlog/models/autovacuum.py index 078c7ef8f..8c9d8b334 100644 --- a/auditlog/models/autovacuum.py +++ b/auditlog/models/autovacuum.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# © 2016 ABF OSIELL SARL, Sebastien Alix (http://osiell.com) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# © 2016 ABF OSIELL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import logging from datetime import datetime, timedelta diff --git a/auditlog/models/http_request.py b/auditlog/models/http_request.py index 7d6b19d48..ca896ea99 100644 --- a/auditlog/models/http_request.py +++ b/auditlog/models/http_request.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2015 ABF OSIELL (). -# -# 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 . -# -############################################################################## +# © 2015 ABF OSIELL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import models, fields, api from openerp.http import request diff --git a/auditlog/models/http_session.py b/auditlog/models/http_session.py index 046a10fa7..183cb6396 100644 --- a/auditlog/models/http_session.py +++ b/auditlog/models/http_session.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2015 ABF OSIELL (). -# -# 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 . -# -############################################################################## +# © 2015 ABF OSIELL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import models, fields, api from openerp.http import request diff --git a/auditlog/models/log.py b/auditlog/models/log.py index 2493e462e..66c6a5554 100644 --- a/auditlog/models/log.py +++ b/auditlog/models/log.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2013 ABF OSIELL (). -# -# 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 . -# -############################################################################## +# © 2015 ABF OSIELL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import models, fields diff --git a/auditlog/models/rule.py b/auditlog/models/rule.py index 768329149..bf5d05c62 100644 --- a/auditlog/models/rule.py +++ b/auditlog/models/rule.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2013 ABF OSIELL (). -# -# 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 . -# -############################################################################## +# © 2015 ABF OSIELL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp import models, fields, api, modules, _, SUPERUSER_ID, sql_db diff --git a/auditlog/static/description/autovacuum.png b/auditlog/static/description/autovacuum.png new file mode 100644 index 000000000..67b47c4b7 Binary files /dev/null and b/auditlog/static/description/autovacuum.png differ diff --git a/auditlog/static/description/icon.png b/auditlog/static/description/icon.png index 3a0328b51..6b0ac9f1e 100644 Binary files a/auditlog/static/description/icon.png and b/auditlog/static/description/icon.png differ diff --git a/auditlog/static/description/icon.xcf b/auditlog/static/description/icon.xcf new file mode 100644 index 000000000..1915c6f45 Binary files /dev/null and b/auditlog/static/description/icon.xcf differ diff --git a/auditlog/static/description/log.png b/auditlog/static/description/log.png new file mode 100644 index 000000000..a1534eb09 Binary files /dev/null and b/auditlog/static/description/log.png differ diff --git a/auditlog/static/description/logs.png b/auditlog/static/description/logs.png new file mode 100644 index 000000000..6969488fb Binary files /dev/null and b/auditlog/static/description/logs.png differ diff --git a/auditlog/static/description/rule.png b/auditlog/static/description/rule.png new file mode 100644 index 000000000..364e6252b Binary files /dev/null and b/auditlog/static/description/rule.png differ diff --git a/auditlog/tests/__init__.py b/auditlog/tests/__init__.py index 94c86efac..1d57467d8 100644 --- a/auditlog/tests/__init__.py +++ b/auditlog/tests/__init__.py @@ -1,22 +1,5 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV (). -# -# 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 . -# -############################################################################## +# © 2015 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from . import test_auditlog from . import test_autovacuum diff --git a/auditlog/tests/test_auditlog.py b/auditlog/tests/test_auditlog.py index 5156c0362..556af97c9 100644 --- a/auditlog/tests/test_auditlog.py +++ b/auditlog/tests/test_auditlog.py @@ -1,23 +1,6 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright (C) 2015 Therp BV (). -# -# 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 . -# -############################################################################## +# © 2015 Therp BV +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from openerp.tests.common import TransactionCase diff --git a/auditlog/tests/test_autovacuum.py b/auditlog/tests/test_autovacuum.py index 4c017e968..720e93e45 100644 --- a/auditlog/tests/test_autovacuum.py +++ b/auditlog/tests/test_autovacuum.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# © 2016 ABF OSIELL SARL, Sebastien Alix (http://osiell.com) -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# © 2016 ABF OSIELL +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). import time from openerp.tests.common import TransactionCase