summaryrefslogtreecommitdiff
path: root/addons/project_issue/project_issue_view.xml
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2016-02-17 11:57:33 +0100
committerYannick Tivisse <yti@odoo.com>2016-03-07 14:24:18 +0100
commit271840a282f1fcfc813ce58ae3b062059eeb265a (patch)
tree855e9a1e899765cda7b1ca9afc9dcf6dad33d85a /addons/project_issue/project_issue_view.xml
parentf7c4b5b65e119b04ddf8c5516778330d441f51c2 (diff)
[FIX] project_issue: Allow portal customer to see their own issues
Some computed fields have been added in v9 and are calling the method _compute_day. This method accesses the project related to the issue So a user portal is able to see his own issue, but cannot open the form view as the prefetching is loading the fields. Hiding them in the group base.group_user doesn't have any effect as the compute method is called on the read. These information may have their importance to the customer too. We decided to compute these fields on superuser access rights. Also the field project_id is displayed on the project_issue form view. As this information is internal, we're hiding this also under the employee group.
Diffstat (limited to 'addons/project_issue/project_issue_view.xml')
-rw-r--r--addons/project_issue/project_issue_view.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/project_issue/project_issue_view.xml b/addons/project_issue/project_issue_view.xml
index 7c7355cb09c..fa76e6c4877 100644
--- a/addons/project_issue/project_issue_view.xml
+++ b/addons/project_issue/project_issue_view.xml
@@ -33,7 +33,8 @@
<group>
<field name="partner_id" on_change="onchange_partner_id(partner_id)"/>
<field name="email_from"/>
- <field name="project_id" on_change="on_change_project(project_id)" context="{'default_use_issues':1}"/>
+ <field name="project_id" on_change="on_change_project(project_id)" context="{'default_use_issues':1}"
+ groups="base.group_user"/>
<field name="task_id" groups="base.group_no_one" on_change="onchange_task_id(task_id)" context="{'default_project_id':project_id}"/>
</group>
</group>
@@ -76,7 +77,7 @@
<field name="id"/>
<field name="name"/>
<field name="partner_id"/>
- <field name="project_id"/>
+ <field name="project_id" groups="base.group_user"/>
<field name="priority" string="Priority" groups="base.group_user"/>
<field name="create_date"/>
<field name="user_id"/>
@@ -96,7 +97,7 @@
<field name="id"/>
<field name="partner_id" operator="child_of"/>
<field name="user_id"/>
- <field name="project_id"/>
+ <field name="project_id" groups="base.group_user"/>
<field name="tag_ids"/>
<field name="stage_id" domain="[]"/>
<filter string="My Issues" domain="[('user_id','=',uid)]"/>