Browse Source

[FIX] View fields review

pull/229/head
Antonio Espinosa 10 years ago
committed by Jairo Llopis
parent
commit
01de2b79c8
  1. 8
      crm_department/views/crm_lead_view.xml
  2. 10
      crm_department/views/res_partner_view.xml

8
crm_department/views/crm_lead_view.xml

@ -8,7 +8,9 @@
<field name="inherit_id" ref="crm.crm_case_form_view_leads"/> <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="phone" position="before"> <field name="phone" position="before">
<field name="department"/>
<field name="department"
placeholder="Department"
options='{"no_open": True}'/>
</field> </field>
</field> </field>
</record> </record>
@ -48,7 +50,9 @@
<field name="inherit_id" ref="crm.crm_case_form_view_oppor"/> <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="phone" position="before"> <field name="phone" position="before">
<field name="department"/>
<field name="department"
placeholder="Department"
options='{"no_open": True}'/>
</field> </field>
</field> </field>
</record> </record>

10
crm_department/views/res_partner_view.xml

@ -9,8 +9,16 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="phone" position="before"> <field name="phone" position="before">
<field name="department" <field name="department"
placeholder="Department"/>
placeholder="Department"
attrs="{'invisible': [('is_company','=', True)]}"
options='{"no_open": True}'/>
</field> </field>
<xpath expr="//field[@name='child_ids']/form//field[@name='phone']" position="before">
<field name="department"
placeholder="Department"
attrs="{'invisible': [('is_company','=', True)]}"
options='{"no_open": True}'/>
</xpath>
</field> </field>
</record> </record>

Loading…
Cancel
Save