Skip to content
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

[17.0][MIG] base_user_role_history: Migration to 17.0 #291

Merged
merged 12 commits into from
Aug 27, 2024
Merged
103 changes: 103 additions & 0 deletions base_user_role_history/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
======================
Base User Role History
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:db5f768a177dfcc1ad17e65d53bedeeac1d7d840e0d009dba5338d27478a0382
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/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--backend-lightgray.png?logo=github
:target: https://github.com/OCA/server-backend/tree/17.0/base_user_role_history
:alt: OCA/server-backend
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-backend-17-0/server-backend-17-0-base_user_role_history
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/server-backend&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This addon provides history for roles modifications on users. Each time
a role is added/updated/unlinked on a user, a new role history line is
created mentioning what changes were made and who made them. Theses
informations are directly accessible from users via a smart button.

**Table of contents**

.. contents::
:local:

Usage
=====

Changes on user roles are easily accessible via a button on user form
view.

Known issues / Roadmap
======================

Since roles on role history line have 'cascade' ondelete, role deletion
leads to role history line deletion. In order to keep history even in
the case of a role deletion, module could be upgraded.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-backend/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
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20base_user_role_history%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* ACSONE SA/NV

Contributors
------------

- Benoit Aimont <[email protected]> (https://acsone.eu)
- Thomas Binsfeld <[email protected]> (https://acsone.eu)
- Christopher Rogos <[email protected]> (https://glueckkanja.com)
- Mohamed Osman <[email protected]> (https://glueckkanja.com)

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-ThomasBinsfeld| image:: https://github.com/ThomasBinsfeld.png?size=40px
:target: https://github.com/ThomasBinsfeld
:alt: ThomasBinsfeld

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-ThomasBinsfeld|

This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/17.0/base_user_role_history>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions base_user_role_history/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
25 changes: 25 additions & 0 deletions base_user_role_history/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2019 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Base User Role History",
"summary": """
This module allows to track the changes on users roles.""",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-backend",
"depends": [
# Odoo
"mail",
# OCA
"base_user_role",
],
"data": [
"security/base_user_role_line_history.xml",
"views/base_user_role_line_history.xml",
"views/res_users.xml",
],
"development_status": "Beta",
"maintainers": ["ThomasBinsfeld"],
}
163 changes: 163 additions & 0 deletions base_user_role_history/i18n/base_user_role_history.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * base_user_role_history
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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: base_user_role_history
#: model_terms:ir.ui.view,arch_db:base_user_role_history.res_users_form_view
msgid "<span class=\"o_stat_text\">Last update of roles</span>"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__performed_action
#: model_terms:ir.ui.view,arch_db:base_user_role_history.base_user_role_line_history_search_view
msgid "Action"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__new_is_enabled
msgid "Active after edit"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__old_is_enabled
msgid "Active before edit"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields.selection,name:base_user_role_history.selection__base_user_role_line_history__performed_action__add
msgid "Add"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__create_uid
msgid "Created by"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__create_date
msgid "Created on"
msgstr ""

#. module: base_user_role_history
#: model_terms:ir.ui.view,arch_db:base_user_role_history.base_user_role_line_history_form_view
#: model_terms:ir.ui.view,arch_db:base_user_role_history.base_user_role_line_history_tree_view
msgid "Date and time of edition"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields.selection,name:base_user_role_history.selection__base_user_role_line_history__performed_action__unlink
msgid "Delete"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__display_name
msgid "Display Name"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields.selection,name:base_user_role_history.selection__base_user_role_line_history__performed_action__edit
msgid "Edit"
msgstr ""

#. module: base_user_role_history
#: model_terms:ir.ui.view,arch_db:base_user_role_history.base_user_role_line_history_form_view
msgid "Edited user"
msgstr ""

#. module: base_user_role_history
#: model_terms:ir.ui.view,arch_db:base_user_role_history.base_user_role_line_history_form_view
#: model_terms:ir.ui.view,arch_db:base_user_role_history.base_user_role_line_history_tree_view
msgid "Editor"
msgstr ""

#. module: base_user_role_history
#: model_terms:ir.ui.view,arch_db:base_user_role_history.base_user_role_line_history_search_view
msgid "Group By"
msgstr ""

#. module: base_user_role_history
#: model:ir.model,name:base_user_role_history.model_base_user_role_line_history
msgid "History of user roles"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__id
msgid "ID"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history____last_update
msgid "Last Modified on"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__write_uid
msgid "Last Updated by"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__write_date
msgid "Last Updated on"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_res_users__last_role_line_modification
msgid "Last roles modification"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__new_date_to
msgid "New end date"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__new_role_id
#: model_terms:ir.ui.view,arch_db:base_user_role_history.base_user_role_line_history_search_view
msgid "New role"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__new_date_from
msgid "New start date"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__old_date_to
msgid "Old end date"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__old_role_id
#: model_terms:ir.ui.view,arch_db:base_user_role_history.base_user_role_line_history_search_view
msgid "Old role"
msgstr ""

#. module: base_user_role_history
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__old_date_from
msgid "Old start date"
msgstr ""

#. module: base_user_role_history
#. odoo-python
#: code:addons/base_user_role_history/models/res_users.py:0
#: model_terms:ir.ui.view,arch_db:base_user_role_history.res_users_form_view
#, python-format
msgid "Roles history"
msgstr ""

#. module: base_user_role_history
#: model:ir.model,name:base_user_role_history.model_res_users
#: model:ir.model.fields,field_description:base_user_role_history.field_base_user_role_line_history__user_id
msgid "User"
msgstr ""
Loading
Loading