-
-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] sale_report_delivered: Allow salesman to have access to the sal…
…e delivery report in the same way as they have access to the sales report. TT51606
- Loading branch information
1 parent
d3f798a
commit 3d1fbf0
Showing
3 changed files
with
27 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_sale_report_delivered_manager,sale.report.delivered,model_sale_report_delivered,sales_team.group_sale_manager,1,1,1,1 | ||
access_sale_report_delivered_salesman,sale.report.delivered,model_sale_report_delivered,sales_team.group_sale_salesman,1,0,0,0 |
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,21 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="sale_report_delivered_personal_rule" model="ir.rule"> | ||
<field name="name">Personal Delivered Analysis</field> | ||
<field name="model_id" ref="model_sale_report_delivered" /> | ||
<field | ||
name="domain_force" | ||
>['|',('user_id','=',user.id),('user_id','=',False)]</field> | ||
<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]" /> | ||
</record> | ||
|
||
<record id="sale_report_delivered_see_all_rule" model="ir.rule"> | ||
<field name="name">All Delivered Analysis</field> | ||
<field name="model_id" ref="model_sale_report_delivered" /> | ||
<field name="domain_force">[(1, '=', 1)]</field> | ||
<field | ||
name="groups" | ||
eval="[(4, ref('sales_team.group_sale_salesman_all_leads'))]" | ||
/> | ||
</record> | ||
</odoo> |