[IMP] partner_profiles: remove useless fields in position form view
This commit is contained in:
committed by
Stéphan Sainléger
parent
859d672633
commit
bf5eeb0d32
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "partner_profiles",
|
"name": "partner_profiles",
|
||||||
"version": "12.0.2.0.0",
|
"version": "12.0.2.1.0",
|
||||||
"author": "Elabore",
|
"author": "Elabore",
|
||||||
"website": "https://elabore.coop",
|
"website": "https://elabore.coop",
|
||||||
"maintainer": "Stéphan Sainléger",
|
"maintainer": "Stéphan Sainléger",
|
||||||
|
@@ -64,8 +64,7 @@
|
|||||||
|
|
||||||
<!-- page Other Positions -->
|
<!-- page Other Positions -->
|
||||||
<xpath expr="//page[@name='other_position']" position="attributes">
|
<xpath expr="//page[@name='other_position']" position="attributes">
|
||||||
<attribute name="attrs">{'invisible': ['|', ('contact_id','!=',False),
|
<attribute name="attrs">{'invisible': [('is_company','=',True)]}</attribute>
|
||||||
('is_company','=',True)]}</attribute>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//page[@name='other_position']/field[@name='other_contact_ids']/kanban"
|
<xpath expr="//page[@name='other_position']/field[@name='other_contact_ids']/kanban"
|
||||||
position="attributes">
|
position="attributes">
|
||||||
@@ -89,18 +88,28 @@
|
|||||||
context="{'default_partner_profile': 1, 'default_is_company': True, 'show_vat': True}" />
|
context="{'default_partner_profile': 1, 'default_is_company': True, 'show_vat': True}" />
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
||||||
|
<!-- #################################### -->
|
||||||
|
<!-- PUBLIC AND POSITION PROFILES DISPLAY -->
|
||||||
|
<!-- #################################### -->
|
||||||
|
<xpath expr="//div[@name='button_box']" position="attributes">
|
||||||
|
<attribute name="attrs">{'invisible': ['|', ('is_public_profile','=', True),
|
||||||
|
('is_position_profile','=', True)]}</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//field[@name='image']" position="attributes">
|
||||||
|
<attribute name="attrs">{'invisible': ['|', ('is_public_profile','=', True),
|
||||||
|
('is_position_profile','=', True)]}</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//notebook" position="attributes">
|
||||||
|
<attribute name="attrs">{'invisible': ['|', ('is_public_profile','=', True),
|
||||||
|
('is_position_profile','=', True)]}</attribute>
|
||||||
|
</xpath>
|
||||||
|
<xpath expr="//field[@name='type']/../.." position="attributes">
|
||||||
|
<attribute name="attrs">{'invisible': ['|', ('is_public_profile','=', True),
|
||||||
|
('is_position_profile','=', True)]}</attribute>
|
||||||
|
</xpath>
|
||||||
<!-- ###################### -->
|
<!-- ###################### -->
|
||||||
<!-- PUBLIC PROFILE DISPLAY -->
|
<!-- PUBLIC PROFILE DISPLAY -->
|
||||||
<!-- ###################### -->
|
<!-- ###################### -->
|
||||||
<xpath expr="//div[@name='button_box']" position="attributes">
|
|
||||||
<attribute name="attrs">{'invisible': [('is_public_profile','=', True)]}</attribute>
|
|
||||||
</xpath>
|
|
||||||
<xpath expr="//field[@name='image']" position="attributes">
|
|
||||||
<attribute name="attrs">{'invisible': [('is_public_profile','=', True)]}</attribute>
|
|
||||||
</xpath>
|
|
||||||
<xpath expr="//field[@name='type']/../.." position="attributes">
|
|
||||||
<attribute name="attrs">{'invisible': [('is_public_profile','=', True)]}</attribute>
|
|
||||||
</xpath>
|
|
||||||
<xpath expr="//field[@name='type']/../.." position="after">
|
<xpath expr="//field[@name='type']/../.." position="after">
|
||||||
<group attrs="{'invisible': [('is_public_profile','=',False)]}">
|
<group attrs="{'invisible': [('is_public_profile','=',False)]}">
|
||||||
<group>
|
<group>
|
||||||
@@ -135,8 +144,19 @@
|
|||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//notebook" position="attributes">
|
<!-- ######################## -->
|
||||||
<attribute name="attrs">{'invisible': [('is_public_profile','=', True)]}</attribute>
|
<!-- POSITION PROFILE DISPLAY -->
|
||||||
|
<!-- ######################## -->
|
||||||
|
<xpath expr="//field[@name='type']/../.." position="after">
|
||||||
|
<group attrs="{'invisible': [('is_position_profile','=',False)]}">
|
||||||
|
<group>
|
||||||
|
<field name="function" />
|
||||||
|
</group>
|
||||||
|
<group>
|
||||||
|
<field name="phone" widget="phone" />
|
||||||
|
<field name="email" widget="email" context="{'gravatar_image': True}" />
|
||||||
|
</group>
|
||||||
|
</group>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
Reference in New Issue
Block a user