Browse Source

[FIX] View fields review

pull/225/head
Antonio Espinosa 10 years ago
committed by Jairo Llopis
parent
commit
1045ee65d2
  1. 6
      crm_employees/views/crm_lead_view.xml
  2. 5
      crm_employees/views/res_partner_view.xml

6
crm_employees/views/crm_lead_view.xml

@ -8,7 +8,8 @@
<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="partner_id" position="before"> <field name="partner_id" position="before">
<field name="employees_range"/>
<field name="employees_range" placeholder="Employees range"
options='{"no_open": True}'/>
<field name="employees_number"/> <field name="employees_number"/>
</field> </field>
</field> </field>
@ -20,7 +21,8 @@
<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="partner_id" position="before"> <field name="partner_id" position="before">
<field name="employees_range"/>
<field name="employees_range" placeholder="Employees range"
options='{"no_open": True}'/>
<field name="employees_number"/> <field name="employees_number"/>
</field> </field>
</field> </field>

5
crm_employees/views/res_partner_view.xml

@ -8,8 +8,9 @@
<field name="inherit_id" ref="base.view_partner_form"/> <field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="phone" position="before"> <field name="phone" position="before">
<field name="employees_range"
attrs="{'invisible': [('is_company', '=', False)]}"/>
<field name="employees_range" placeholder="Employees range"
attrs="{'invisible': [('is_company', '=', False)]}"
options='{"no_open": True}'/>
<field name="employees_number" <field name="employees_number"
attrs="{'invisible': [('is_company', '=', False)]}"/> attrs="{'invisible': [('is_company', '=', False)]}"/>
</field> </field>

Loading…
Cancel
Save