[FIX]: Fix issue for portal helpdesk issue access

This commit is contained in:
Bhumika Trivedi 2018-08-09 11:04:29 +05:30
parent edd83d63fc
commit 9a9666c157
2 changed files with 13 additions and 0 deletions

View File

@ -18,6 +18,15 @@
<field name="users" eval="[(4, ref('base.user_root'))]"/>
</record>
<record id="helpdesk_user_rule" model="ir.rule">
<field name="name">See Own Issues</field>
<field ref="model_helpdesk_ticket" name="model_id"/>
<field name="domain_force">
['|', ('user_id','=',user.id), ('partner_id', '=', user.partner_id.id)]
</field>
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
</record>
<record id="helpdesk_user_rule" model="ir.rule">
<field name="name">See Own Issues</field>
<field ref="model_helpdesk_ticket" name="model_id"/>

View File

@ -1,12 +1,16 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_helpdesk_user,access_helpdesk_user,model_helpdesk_ticket,helpdesk_group_user,1,1,1,0
access_helpdesk_portal,access_helpdesk_portal,model_helpdesk_ticket,base.group_portal,1,0,0,0
access_helpdesk_manager,access_helpdesk_manager,model_helpdesk_ticket,helpdesk_group_manager,1,1,1,1
access_helpdesk_team_user,access_helpdesk_team_user,model_helpdesk_team,helpdesk_group_user,1,0,0,0
access_helpdesk_team_portal,access_helpdesk_team_portal,model_helpdesk_team,base.group_portal,1,0,0,0
access_helpdesk_team_manager,access_helpdesk_team_manager,model_helpdesk_team,helpdesk_group_manager,1,1,1,1
access_issue_type_user,access_issue_type_user,model_issue_type,helpdesk_group_user,1,0,0,0
access_issue_type_any,access_issue_type_any,model_issue_type,,1,0,0,0
access_issue_type_portal,access_issue_type_portal,model_issue_type,base.group_portal,1,0,0,0
access_issue_type_manager,access_issue_type_manager,model_issue_type,helpdesk_group_manager,1,1,1,1
access_tag_user,access_tag_user,model_helpdesk_tag,helpdesk_group_user,1,0,0,0
access_tag_portal,access_tag_portal,model_helpdesk_tag,base.group_portal,1,0,0,0
access_tag_manager,access_tag_manager,model_helpdesk_tag,helpdesk_group_manager,1,1,1,1
access_helpdesk_report,access_helpdesk_report,model_helpdesk_report,helpdesk_group_manager,1,0,0,0
access_ir_rule,access_ir_rule,base.model_ir_rule,helpdesk_group_manager,1,0,0,0

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_helpdesk_user access_helpdesk_user model_helpdesk_ticket helpdesk_group_user 1 1 1 0
3 access_helpdesk_portal access_helpdesk_portal model_helpdesk_ticket base.group_portal 1 0 0 0
4 access_helpdesk_manager access_helpdesk_manager model_helpdesk_ticket helpdesk_group_manager 1 1 1 1
5 access_helpdesk_team_user access_helpdesk_team_user model_helpdesk_team helpdesk_group_user 1 0 0 0
6 access_helpdesk_team_portal access_helpdesk_team_portal model_helpdesk_team base.group_portal 1 0 0 0
7 access_helpdesk_team_manager access_helpdesk_team_manager model_helpdesk_team helpdesk_group_manager 1 1 1 1
8 access_issue_type_user access_issue_type_user model_issue_type helpdesk_group_user 1 0 0 0
9 access_issue_type_any access_issue_type_any model_issue_type 1 0 0 0
10 access_issue_type_portal access_issue_type_portal model_issue_type base.group_portal 1 0 0 0
11 access_issue_type_manager access_issue_type_manager model_issue_type helpdesk_group_manager 1 1 1 1
12 access_tag_user access_tag_user model_helpdesk_tag helpdesk_group_user 1 0 0 0
13 access_tag_portal access_tag_portal model_helpdesk_tag base.group_portal 1 0 0 0
14 access_tag_manager access_tag_manager model_helpdesk_tag helpdesk_group_manager 1 1 1 1
15 access_helpdesk_report access_helpdesk_report model_helpdesk_report helpdesk_group_manager 1 0 0 0
16 access_ir_rule access_ir_rule base.model_ir_rule helpdesk_group_manager 1 0 0 0