summaryrefslogtreecommitdiff
path: root/addons/project/project_view.xml
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@openerp.com>2016-05-06 14:39:03 +0200
committerFabien Pinckaers <fp@openerp.com>2016-05-06 14:39:03 +0200
commitb913f41d06ee458ec768debe7320c63dbba4a84e (patch)
tree6002f99b483d3f925f7b343380ddbd0e3a50adfd /addons/project/project_view.xml
parent99d8574daa7f13d5df057b49058ecc91927af9ec (diff)
[IMP] project: customer field visible for customer projects only
Diffstat (limited to 'addons/project/project_view.xml')
-rw-r--r--addons/project/project_view.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml
index 5092f4ef966..e7c2583e88b 100644
--- a/addons/project/project_view.xml
+++ b/addons/project/project_view.xml
@@ -111,7 +111,8 @@
<page string="Settings">
<group>
<field name="privacy_visibility" widget="radio"/>
- <field name="partner_id" on_change="onchange_partner_id(partner_id)" string="Customer"/>
+ <field name="partner_id" on_change="onchange_partner_id(partner_id)" string="Customer"
+ attrs="{'invisible':[('privacy_visibility','in',['employees', 'followers'])]}"/>
<field name="user_id" string="Project Manager"
attrs="{'readonly':[('state','in',['close', 'cancelled'])]}"
groups="base.group_no_one"/>