mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[FIX] base_user_role_history - prettier xml plugin
This commit is contained in:
committed by
Mohamed Osman
parent
db37389d3c
commit
573be62a81
@@ -14,13 +14,13 @@ Base User Role History
|
||||
: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/12.0/base_user_role_history
|
||||
:target: https://github.com/OCA/server-backend/tree/13.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-12-0/server-backend-12-0-base_user_role_history
|
||||
:target: https://translation.odoo-community.org/projects/server-backend-13-0/server-backend-13-0-base_user_role_history
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/253/12.0
|
||||
:target: https://runbot.odoo-community.org/runbot/253/13.0
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
@@ -53,7 +53,7 @@ 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 smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20base_user_role_history%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/server-backend/issues/new?body=module:%20base_user_role_history%0Aversion:%2013.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.
|
||||
|
||||
@@ -92,6 +92,6 @@ 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/12.0/base_user_role_history>`_ project on GitHub.
|
||||
This module is part of the `OCA/server-backend <https://github.com/OCA/server-backend/tree/13.0/base_user_role_history>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
||||
@@ -6,8 +6,6 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2019-12-18 11:07+0000\n"
|
||||
"PO-Revision-Date: 2019-12-18 11:07+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
|
||||
@@ -1,17 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2019 ACSONE SA/NV
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record model="ir.model.access" id="base_user_role_line_history_access_name">
|
||||
<field name="name">base.user.role.line.history access user</field>
|
||||
<field name="model_id" ref="model_base_user_role_line_history"/>
|
||||
<field name="group_id" ref="base.group_user"/>
|
||||
<field name="perm_read" eval="1"/>
|
||||
<field name="perm_create" eval="0"/>
|
||||
<field name="perm_write" eval="0"/>
|
||||
<field name="perm_unlink" eval="0"/>
|
||||
<field name="model_id" ref="model_base_user_role_line_history" />
|
||||
<field name="group_id" ref="base.group_user" />
|
||||
<field name="perm_read" eval="1" />
|
||||
<field name="perm_create" eval="0" />
|
||||
<field name="perm_write" eval="0" />
|
||||
<field name="perm_unlink" eval="0" />
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -367,7 +367,7 @@ ul.auto-toc {
|
||||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-backend/tree/12.0/base_user_role_history"><img alt="OCA/server-backend" src="https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-backend-12-0/server-backend-12-0-base_user_role_history"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/253/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/server-backend/tree/13.0/base_user_role_history"><img alt="OCA/server-backend" src="https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/server-backend-13-0/server-backend-13-0-base_user_role_history"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/253/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>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.
|
||||
@@ -401,7 +401,7 @@ a role deletion, module could be upgraded.</p>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-backend/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/server-backend/issues/new?body=module:%20base_user_role_history%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/server-backend/issues/new?body=module:%20base_user_role_history%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -428,7 +428,7 @@ mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external" href="https://github.com/ThomasBinsfeld"><img alt="ThomasBinsfeld" src="https://github.com/ThomasBinsfeld.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-backend/tree/12.0/base_user_role_history">OCA/server-backend</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-backend/tree/13.0/base_user_role_history">OCA/server-backend</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2019 ACSONE SA/NV
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
|
||||
<odoo>
|
||||
|
||||
<!--FORM view-->
|
||||
|
||||
<record model="ir.ui.view" id="base_user_role_line_history_form_view">
|
||||
<field name="name">base.user.role.line.history.form (in base_user_role_history)</field>
|
||||
<field
|
||||
name="name"
|
||||
>base.user.role.line.history.form (in base_user_role_history)</field>
|
||||
<field name="model">base.user.role.line.history</field>
|
||||
<field name="arch" type="xml">
|
||||
<form create="0" edit="0" delete="0">
|
||||
@@ -15,75 +14,79 @@
|
||||
</header>
|
||||
<sheet>
|
||||
<group name="group_main" col="4">
|
||||
<field name="create_uid"
|
||||
string="Editor"/>
|
||||
<field name="performed_action"/>
|
||||
<field name="user_id"
|
||||
string="Edited user"/>
|
||||
<field name="create_date"
|
||||
string="Date and time of edition"/>
|
||||
<field name="old_role_id"/>
|
||||
<field name="new_role_id"/>
|
||||
<field name="old_date_from"/>
|
||||
<field name="new_date_from"/>
|
||||
<field name="old_date_to"/>
|
||||
<field name="new_date_to"/>
|
||||
<field name="old_is_enabled"/>
|
||||
<field name="new_is_enabled"/>
|
||||
<field name="create_uid" string="Editor" />
|
||||
<field name="performed_action" />
|
||||
<field name="user_id" string="Edited user" />
|
||||
<field name="create_date" string="Date and time of edition" />
|
||||
<field name="old_role_id" />
|
||||
<field name="new_role_id" />
|
||||
<field name="old_date_from" />
|
||||
<field name="new_date_from" />
|
||||
<field name="old_date_to" />
|
||||
<field name="new_date_to" />
|
||||
<field name="old_is_enabled" />
|
||||
<field name="new_is_enabled" />
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!--TREE view-->
|
||||
|
||||
<record model="ir.ui.view" id="base_user_role_line_history_tree_view">
|
||||
<field name="name">base.user.role.line.history.tree (in base_user_role_history)</field>
|
||||
<field
|
||||
name="name"
|
||||
>base.user.role.line.history.tree (in base_user_role_history)</field>
|
||||
<field name="model">base.user.role.line.history</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree decoration-success="performed_action == 'add'"
|
||||
decoration-danger="performed_action == 'unlink'"
|
||||
create="0" edit="0" delete="0">
|
||||
<field name="create_uid"
|
||||
string="Editor"/>
|
||||
<field name="create_date"
|
||||
string="Date and time of edition"/>
|
||||
<field name="performed_action"/>
|
||||
<field name="old_role_id"/>
|
||||
<field name="new_role_id"/>
|
||||
<field name="old_date_from"/>
|
||||
<field name="new_date_from"/>
|
||||
<field name="old_date_to"/>
|
||||
<field name="new_date_to"/>
|
||||
<field name="old_is_enabled"/>
|
||||
<field name="new_is_enabled"/>
|
||||
<tree
|
||||
decoration-success="performed_action == 'add'"
|
||||
decoration-danger="performed_action == 'unlink'"
|
||||
create="0"
|
||||
edit="0"
|
||||
delete="0"
|
||||
>
|
||||
<field name="create_uid" string="Editor" />
|
||||
<field name="create_date" string="Date and time of edition" />
|
||||
<field name="performed_action" />
|
||||
<field name="old_role_id" />
|
||||
<field name="new_role_id" />
|
||||
<field name="old_date_from" />
|
||||
<field name="new_date_from" />
|
||||
<field name="old_date_to" />
|
||||
<field name="new_date_to" />
|
||||
<field name="old_is_enabled" />
|
||||
<field name="new_is_enabled" />
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!--SEARCH view-->
|
||||
|
||||
<record model="ir.ui.view" id="base_user_role_line_history_search_view">
|
||||
<field name="name">base.user.role.line.history.search (in base_user_role_history)</field>
|
||||
<field
|
||||
name="name"
|
||||
>base.user.role.line.history.search (in base_user_role_history)</field>
|
||||
<field name="model">base.user.role.line.history</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="old_role_id"/>
|
||||
<field name="new_role_id"/>
|
||||
<field name="old_role_id" />
|
||||
<field name="new_role_id" />
|
||||
<group string="Group By" name="groupby">
|
||||
<filter name="group_by_old_role"
|
||||
string="Old role"
|
||||
context="{'group_by': 'old_role_id'}"/>
|
||||
<filter name="group_by_new_role"
|
||||
string="New role"
|
||||
context="{'group_by': 'new_role_id'}"/>
|
||||
<filter name="group_by_performed_action"
|
||||
string="Action"
|
||||
context="{'group_by': 'performed_action'}"/>
|
||||
<filter
|
||||
name="group_by_old_role"
|
||||
string="Old role"
|
||||
context="{'group_by': 'old_role_id'}"
|
||||
/>
|
||||
<filter
|
||||
name="group_by_new_role"
|
||||
string="New role"
|
||||
context="{'group_by': 'new_role_id'}"
|
||||
/>
|
||||
<filter
|
||||
name="group_by_performed_action"
|
||||
string="Action"
|
||||
context="{'group_by': 'performed_action'}"
|
||||
/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,29 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2019 ACSONE SA/NV
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
|
||||
<odoo>
|
||||
|
||||
<!--FORM view-->
|
||||
|
||||
<record model="ir.ui.view" id="res_users_form_view">
|
||||
<field name="name">res.users.form (in base_user_role_history)</field>
|
||||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="base.view_users_form"/>
|
||||
<field name="inherit_id" ref="base.view_users_form" />
|
||||
<field name="arch" type="xml">
|
||||
<div name="button_box" position="inside">
|
||||
<button name="show_role_lines_history"
|
||||
help="Roles history"
|
||||
class="oe_stat_button"
|
||||
icon="fa-history"
|
||||
type="object">
|
||||
<button
|
||||
name="show_role_lines_history"
|
||||
help="Roles history"
|
||||
class="oe_stat_button"
|
||||
icon="fa-history"
|
||||
type="object"
|
||||
>
|
||||
<div class="o_stat_info">
|
||||
<span class="o_stat_text">Last update of roles</span>
|
||||
<field class="o_stat_value" name="last_role_line_modification"/>
|
||||
<field
|
||||
class="o_stat_value"
|
||||
name="last_role_line_modification"
|
||||
/>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user