diff --git a/setup/user_log_view/odoo/addons/user_log_view b/setup/user_log_view/odoo/addons/user_log_view new file mode 120000 index 0000000000..9e4a24403d --- /dev/null +++ b/setup/user_log_view/odoo/addons/user_log_view @@ -0,0 +1 @@ +../../../../user_log_view \ No newline at end of file diff --git a/setup/user_log_view/setup.py b/setup/user_log_view/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/user_log_view/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/user_log_view/README.rst b/user_log_view/README.rst new file mode 100644 index 0000000000..63229322c1 --- /dev/null +++ b/user_log_view/README.rst @@ -0,0 +1,92 @@ +================= +User's Log Viewer +================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github + :target: https://github.com/OCA/server-auth/tree/16.0/user_log_view + :alt: OCA/server-auth +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-user_log_view + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/server-auth&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds a smart button on user's form to display authentication logs. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +1) Go to Settings +2) Go to Users & Companies +3) Choose the User whose logs you need to see and go to Authentication logs +4) You will see a list of authentications for a specific user + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* IT-Projects LLC + +Contributors +~~~~~~~~~~~~ + +* Denis Mudarisov (https://www.it-projects.info/) +* Chandresh Thakkar + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +.. |maintainer-trojikman| image:: https://github.com/trojikman.png?size=40px + :target: https://github.com/trojikman + :alt: trojikman + +Current `maintainer `__: + +|maintainer-trojikman| + +This module is part of the `OCA/server-auth `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/user_log_view/__init__.py b/user_log_view/__init__.py new file mode 100644 index 0000000000..ca03eda077 --- /dev/null +++ b/user_log_view/__init__.py @@ -0,0 +1 @@ +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html). diff --git a/user_log_view/__manifest__.py b/user_log_view/__manifest__.py new file mode 100644 index 0000000000..589268a0c3 --- /dev/null +++ b/user_log_view/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2019 Denis Mudarisov (IT-Projects LLC) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). +{ + "name": "User's Log Viewer", + "summary": "Allow to see user's actions log", + "version": "16.0.1.0.0", + "development_status": "Production/Stable", + "category": "Extra Tools", + "website": "https://github.com/OCA/server-auth", + "author": "IT-Projects LLC, Odoo Community Association (OCA)", + "maintainers": ["trojikman"], + "license": "LGPL-3", + "application": False, + "installable": True, + "depends": [ + "base", + ], + "data": [ + "views/res_users_views.xml", + ], +} diff --git a/user_log_view/i18n/user_log_view.pot b/user_log_view/i18n/user_log_view.pot new file mode 100644 index 0000000000..e5a54bf7f8 --- /dev/null +++ b/user_log_view/i18n/user_log_view.pot @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * user_log_view +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: user_log_view +#: model:ir.actions.act_window,name:user_log_view.action_user_log +#: model_terms:ir.ui.view,arch_db:user_log_view.res_users_view_form +msgid "Authentication logs" +msgstr "" + +#. module: user_log_view +#: model_terms:ir.ui.view,arch_db:user_log_view.res_users_log_view_search +msgid "Date" +msgstr "" + +#. module: user_log_view +#: model_terms:ir.ui.view,arch_db:user_log_view.res_users_log_view_search +msgid "Group By" +msgstr "" + +#. module: user_log_view +#: model_terms:ir.ui.view,arch_db:user_log_view.res_users_log_view_search +msgid "Test Search" +msgstr "" diff --git a/user_log_view/readme/CONTRIBUTORS.rst b/user_log_view/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..4a18ad1cb9 --- /dev/null +++ b/user_log_view/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Denis Mudarisov (https://www.it-projects.info/) +* Chandresh Thakkar diff --git a/user_log_view/readme/DESCRIPTION.rst b/user_log_view/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..77050f7cbc --- /dev/null +++ b/user_log_view/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds a smart button on user's form to display authentication logs. diff --git a/user_log_view/readme/USAGE.rst b/user_log_view/readme/USAGE.rst new file mode 100644 index 0000000000..65a73ddb2e --- /dev/null +++ b/user_log_view/readme/USAGE.rst @@ -0,0 +1,6 @@ +To use this module, you need to: + +1) Go to Settings +2) Go to Users & Companies +3) Choose the User whose logs you need to see and go to Authentication logs +4) You will see a list of authentications for a specific user diff --git a/user_log_view/static/description/icon.png b/user_log_view/static/description/icon.png new file mode 100644 index 0000000000..3a0328b516 Binary files /dev/null and b/user_log_view/static/description/icon.png differ diff --git a/user_log_view/static/description/index.html b/user_log_view/static/description/index.html new file mode 100644 index 0000000000..5b8d4bb414 --- /dev/null +++ b/user_log_view/static/description/index.html @@ -0,0 +1,433 @@ + + + + + + +User's Log Viewer + + + +
+

User’s Log Viewer

+ + +

Production/Stable License: LGPL-3 OCA/server-auth Translate me on Weblate Try me on Runboat

+

This module adds a smart button on user’s form to display authentication logs.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Go to Settings
  2. +
  3. Go to Users & Companies
  4. +
  5. Choose the User whose logs you need to see and go to Authentication logs
  6. +
  7. You will see a list of authentications for a specific user
  8. +
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • IT-Projects LLC
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

trojikman

+

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

+

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

+
+
+
+ + diff --git a/user_log_view/views/res_users_views.xml b/user_log_view/views/res_users_views.xml new file mode 100644 index 0000000000..e87a35940c --- /dev/null +++ b/user_log_view/views/res_users_views.xml @@ -0,0 +1,76 @@ + + + + + + Authentication logs + ir.actions.act_window + res.users.log + [[False, 'tree'], [False, 'form']] + [('create_uid', '=', active_id)] + current + {'search_default_groupby_date': True} + + + + res.users.log.search + res.users.log + + + + + + + + + + + + + res.users.view.form + res.users + + + +