Skip to content

Commit

Permalink
Merge pull request #407 from OCA/14.0
Browse files Browse the repository at this point in the history
Syncing from upstream OCA/commission (14.0)
  • Loading branch information
bt-admin authored Jan 15, 2024
2 parents aea69df + 6c7c904 commit 1d49692
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
6 changes: 5 additions & 1 deletion sale_commission_agent_restrict/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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::
Expand Down
3 changes: 3 additions & 0 deletions sale_commission_agent_restrict/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
"views/res_partner_views.xml",
"views/sale_order_view.xml",
],
"demo": [
"demo/res_users_demo.xml",
],
"installable": True,
}
31 changes: 31 additions & 0 deletions sale_commission_agent_restrict/demo/res_users_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="res_partner_agent" model="res.partner">
<field name="name">Agent Demo</field>
<field name="company_type">person</field>
<field name="email">[email protected]</field>
<field name="agent" eval="True" />
</record>

<record
id="res_users_agent"
model="res.users"
context="{'no_reset_password': True}"
>
<field name="name">Agent Demo</field>
<field name="partner_id" ref="res_partner_agent" />
<field name="login">agent</field>
<field name="password">agent</field>
<field
name="groups_id"
eval="[
(6, 0, [
ref('sale_commission_agent_restrict.group_agent_own_customers'),
ref('sale_commission_agent_restrict.group_agent_own_commissions')
])
]"
/>
</record>

</odoo>
4 changes: 4 additions & 0 deletions sale_commission_agent_restrict/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -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`.
5 changes: 4 additions & 1 deletion sale_commission_agent_restrict/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,14 @@ <h1 class="title">Sales Commissions Agent Restrict</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7ba0a3cdf3b0acd952dae9162fdb8a6f3ab06460bd27444574ad643043e05bc6
!! source digest: sha256:89ae4bba67d4fa31952493bf3b81eefa1e45523b0209c6a52e87d22a1eb9662e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" 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 image-reference" 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 image-reference" href="https://github.com/OCA/commission/tree/14.0/sale_commission_agent_restrict"><img alt="OCA/commission" src="https://img.shields.io/badge/github-OCA%2Fcommission-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/commission-14-0/commission-14-0-sale_commission_agent_restrict"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/commission&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module provides access groups and rules to restrict access of agent user
to contacts and sales.</p>
<p>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 <cite>agent</cite>
and password <cite>agent</cite>.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand Down

0 comments on commit 1d49692

Please sign in to comment.