From 4286524f141e10644065fdb0e038d8a409560d55 Mon Sep 17 00:00:00 2001 From: Alessandro Uffreduzzi Date: Wed, 22 Nov 2023 14:47:50 +0100 Subject: [PATCH] [IMP] sale_commission_agent_restrict: add user as demo data --- sale_commission_agent_restrict/README.rst | 6 +++- .../__manifest__.py | 3 ++ .../demo/res_users_demo.xml | 31 +++++++++++++++++++ .../readme/DESCRIPTION.rst | 4 +++ .../static/description/index.html | 5 ++- 5 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 sale_commission_agent_restrict/demo/res_users_demo.xml diff --git a/sale_commission_agent_restrict/README.rst b/sale_commission_agent_restrict/README.rst index 35c054c17..861427999 100644 --- a/sale_commission_agent_restrict/README.rst +++ b/sale_commission_agent_restrict/README.rst @@ -7,7 +7,7 @@ Sales Commissions Agent Restrict !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:7ba0a3cdf3b0acd952dae9162fdb8a6f3ab06460bd27444574ad643043e05bc6 + !! source digest: sha256:89ae4bba67d4fa31952493bf3b81eefa1e45523b0209c6a52e87d22a1eb9662e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png @@ -31,6 +31,10 @@ Sales Commissions Agent Restrict This module provides access groups and rules to restrict access of agent user to contacts and sales. +If installing with demo data, the module also provides a user to ease testing +from the point of view of the agent. You can log in using username `agent` +and password `agent`. + **Table of contents** .. contents:: diff --git a/sale_commission_agent_restrict/__manifest__.py b/sale_commission_agent_restrict/__manifest__.py index 2e46624bb..0480ecbf8 100644 --- a/sale_commission_agent_restrict/__manifest__.py +++ b/sale_commission_agent_restrict/__manifest__.py @@ -18,5 +18,8 @@ "views/res_partner_views.xml", "views/sale_order_view.xml", ], + "demo": [ + "demo/res_users_demo.xml", + ], "installable": True, } diff --git a/sale_commission_agent_restrict/demo/res_users_demo.xml b/sale_commission_agent_restrict/demo/res_users_demo.xml new file mode 100644 index 000000000..67ada32f2 --- /dev/null +++ b/sale_commission_agent_restrict/demo/res_users_demo.xml @@ -0,0 +1,31 @@ + + + + + Agent Demo + person + agent@example.com + + + + + Agent Demo + + agent + agent + + + + diff --git a/sale_commission_agent_restrict/readme/DESCRIPTION.rst b/sale_commission_agent_restrict/readme/DESCRIPTION.rst index 0588acee2..6b8373021 100644 --- a/sale_commission_agent_restrict/readme/DESCRIPTION.rst +++ b/sale_commission_agent_restrict/readme/DESCRIPTION.rst @@ -1,2 +1,6 @@ This module provides access groups and rules to restrict access of agent user to contacts and sales. + +If installing with demo data, the module also provides a user to ease testing +from the point of view of the agent. You can log in using username `agent` +and password `agent`. diff --git a/sale_commission_agent_restrict/static/description/index.html b/sale_commission_agent_restrict/static/description/index.html index a4bf397a6..5ed1d4c7e 100644 --- a/sale_commission_agent_restrict/static/description/index.html +++ b/sale_commission_agent_restrict/static/description/index.html @@ -367,11 +367,14 @@

Sales Commissions Agent Restrict

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:7ba0a3cdf3b0acd952dae9162fdb8a6f3ab06460bd27444574ad643043e05bc6 +!! source digest: sha256:89ae4bba67d4fa31952493bf3b81eefa1e45523b0209c6a52e87d22a1eb9662e !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/commission Translate me on Weblate Try me on Runboat

This module provides access groups and rules to restrict access of agent user to contacts and sales.

+

If installing with demo data, the module also provides a user to ease testing +from the point of view of the agent. You can log in using username agent +and password agent.

Table of contents