Browse Source

[FIX] View fields review

pull/224/head
Antonio Espinosa 10 years ago
committed by Jairo Llopis
parent
commit
74cfb885a5
  1. 12
      crm_capital/views/crm_lead_view.xml
  2. 10
      crm_capital/views/res_partner_view.xml

12
crm_capital/views/crm_lead_view.xml

@ -8,9 +8,11 @@
<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="capital_country"/>
<field name="capital_country" placeholder="Capital country"
options='{"no_open": True}'/>
<field name="capital_registered"/> <field name="capital_registered"/>
<field name="turnover_range"/>
<field name="turnover_range" placeholder="Turnover range"
options='{"no_open": True}'/>
<field name="turnover_number"/> <field name="turnover_number"/>
</field> </field>
</field> </field>
@ -38,9 +40,11 @@
<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="capital_country"/>
<field name="capital_country" placeholder="Capital country"
options='{"no_open": True}'/>
<field name="capital_registered"/> <field name="capital_registered"/>
<field name="turnover_range"/>
<field name="turnover_range" placeholder="Turnover range"
options='{"no_open": True}'/>
<field name="turnover_number"/> <field name="turnover_number"/>
</field> </field>
</field> </field>

10
crm_capital/views/res_partner_view.xml

@ -8,12 +8,14 @@
<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="capital_country"
attrs="{'invisible': [('is_company', '=', False)]}"/>
<field name="capital_country" placeholder="Capital country"
attrs="{'invisible': [('is_company', '=', False)]}"
options='{"no_open": True}'/>
<field name="capital_registered" <field name="capital_registered"
attrs="{'invisible': [('is_company', '=', False)]}"/> attrs="{'invisible': [('is_company', '=', False)]}"/>
<field name="turnover_range"
attrs="{'invisible': [('is_company', '=', False)]}"/>
<field name="turnover_range" placeholder="Turnover range"
attrs="{'invisible': [('is_company', '=', False)]}"
options='{"no_open": True}'/>
<field name="turnover_number" <field name="turnover_number"
attrs="{'invisible': [('is_company', '=', False)]}"/> attrs="{'invisible': [('is_company', '=', False)]}"/>
</field> </field>

Loading…
Cancel
Save