forked from OCA/commission
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #407 from OCA/14.0
Syncing from upstream OCA/commission (14.0)
- Loading branch information
Showing
5 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters