[FIX] base_user_role_history - prettier xml plugin

This commit is contained in:
Benoit Aimont
2020-06-12 09:36:34 +02:00
committed by Mohamed Osman
parent db37389d3c
commit 573be62a81
6 changed files with 85 additions and 86 deletions

View File

@@ -14,13 +14,13 @@ Base User Role History
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3 :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github .. |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 :alt: OCA/server-backend
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png .. |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 :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png .. |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 :alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5| |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -53,7 +53,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-backend/issues>`_. 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. 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 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. 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| |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. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -6,8 +6,6 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 13.0\n" "Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \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" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"

View File

@@ -1,17 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 ACSONE SA/NV <!-- Copyright 2019 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record model="ir.model.access" id="base_user_role_line_history_access_name"> <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="name">base.user.role.line.history access user</field>
<field name="model_id" ref="model_base_user_role_line_history"/> <field name="model_id" ref="model_base_user_role_line_history" />
<field name="group_id" ref="base.group_user"/> <field name="group_id" ref="base.group_user" />
<field name="perm_read" eval="1"/> <field name="perm_read" eval="1" />
<field name="perm_create" eval="0"/> <field name="perm_create" eval="0" />
<field name="perm_write" eval="0"/> <field name="perm_write" eval="0" />
<field name="perm_unlink" eval="0"/> <field name="perm_unlink" eval="0" />
</record> </record>
</odoo> </odoo>

View File

@@ -367,7 +367,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !! !! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !! !! 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. <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 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. 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>. <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. 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 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> <p>Do not contact contributors directly about support or help with technical issues.</p>
</div> </div>
<div class="section" id="credits"> <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> promote its widespread use.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</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><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> <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>
</div> </div>

View File

@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 ACSONE SA/NV <!-- Copyright 2019 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<!--FORM view--> <!--FORM view-->
<record model="ir.ui.view" id="base_user_role_line_history_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="model">base.user.role.line.history</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<form create="0" edit="0" delete="0"> <form create="0" edit="0" delete="0">
@@ -15,75 +14,79 @@
</header> </header>
<sheet> <sheet>
<group name="group_main" col="4"> <group name="group_main" col="4">
<field name="create_uid" <field name="create_uid" string="Editor" />
string="Editor"/> <field name="performed_action" />
<field name="performed_action"/> <field name="user_id" string="Edited user" />
<field name="user_id" <field name="create_date" string="Date and time of edition" />
string="Edited user"/> <field name="old_role_id" />
<field name="create_date" <field name="new_role_id" />
string="Date and time of edition"/> <field name="old_date_from" />
<field name="old_role_id"/> <field name="new_date_from" />
<field name="new_role_id"/> <field name="old_date_to" />
<field name="old_date_from"/> <field name="new_date_to" />
<field name="new_date_from"/> <field name="old_is_enabled" />
<field name="old_date_to"/> <field name="new_is_enabled" />
<field name="new_date_to"/>
<field name="old_is_enabled"/>
<field name="new_is_enabled"/>
</group> </group>
</sheet> </sheet>
</form> </form>
</field> </field>
</record> </record>
<!--TREE view--> <!--TREE view-->
<record model="ir.ui.view" id="base_user_role_line_history_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="model">base.user.role.line.history</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree decoration-success="performed_action == 'add'" <tree
decoration-danger="performed_action == 'unlink'" decoration-success="performed_action == 'add'"
create="0" edit="0" delete="0"> decoration-danger="performed_action == 'unlink'"
<field name="create_uid" create="0"
string="Editor"/> edit="0"
<field name="create_date" delete="0"
string="Date and time of edition"/> >
<field name="performed_action"/> <field name="create_uid" string="Editor" />
<field name="old_role_id"/> <field name="create_date" string="Date and time of edition" />
<field name="new_role_id"/> <field name="performed_action" />
<field name="old_date_from"/> <field name="old_role_id" />
<field name="new_date_from"/> <field name="new_role_id" />
<field name="old_date_to"/> <field name="old_date_from" />
<field name="new_date_to"/> <field name="new_date_from" />
<field name="old_is_enabled"/> <field name="old_date_to" />
<field name="new_is_enabled"/> <field name="new_date_to" />
<field name="old_is_enabled" />
<field name="new_is_enabled" />
</tree> </tree>
</field> </field>
</record> </record>
<!--SEARCH view--> <!--SEARCH view-->
<record model="ir.ui.view" id="base_user_role_line_history_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="model">base.user.role.line.history</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<search> <search>
<field name="old_role_id"/> <field name="old_role_id" />
<field name="new_role_id"/> <field name="new_role_id" />
<group string="Group By" name="groupby"> <group string="Group By" name="groupby">
<filter name="group_by_old_role" <filter
string="Old role" name="group_by_old_role"
context="{'group_by': 'old_role_id'}"/> string="Old role"
<filter name="group_by_new_role" context="{'group_by': 'old_role_id'}"
string="New role" />
context="{'group_by': 'new_role_id'}"/> <filter
<filter name="group_by_performed_action" name="group_by_new_role"
string="Action" string="New role"
context="{'group_by': 'performed_action'}"/> context="{'group_by': 'new_role_id'}"
/>
<filter
name="group_by_performed_action"
string="Action"
context="{'group_by': 'performed_action'}"
/>
</group> </group>
</search> </search>
</field> </field>
</record> </record>
</odoo> </odoo>

View File

@@ -1,29 +1,30 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 ACSONE SA/NV <!-- Copyright 2019 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<!--FORM view--> <!--FORM view-->
<record model="ir.ui.view" id="res_users_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="name">res.users.form (in base_user_role_history)</field>
<field name="model">res.users</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"> <field name="arch" type="xml">
<div name="button_box" position="inside"> <div name="button_box" position="inside">
<button name="show_role_lines_history" <button
help="Roles history" name="show_role_lines_history"
class="oe_stat_button" help="Roles history"
icon="fa-history" class="oe_stat_button"
type="object"> icon="fa-history"
type="object"
>
<div class="o_stat_info"> <div class="o_stat_info">
<span class="o_stat_text">Last update of roles</span> <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> </div>
</button> </button>
</div> </div>
</field> </field>
</record> </record>
</odoo> </odoo>