Browse Source

[FIX] View fields review

pull/226/head
Antonio Espinosa 10 years ago
committed by Jairo Llopis
parent
commit
465885833e
  1. 6
      crm_job_position/views/crm_lead_view.xml
  2. 9
      crm_job_position/views/res_partner_view.xml

6
crm_job_position/views/crm_lead_view.xml

@ -8,7 +8,8 @@
<field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
<field name="arch" type="xml">
<field name="function" position="before">
<field name="job_position"/>
<field name="job_position" placeholder="Job position"
options='{"no_open": True}'/>
</field>
</field>
</record>
@ -48,7 +49,8 @@
<field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
<field name="arch" type="xml">
<field name="function" position="before">
<field name="job_position"/>
<field name="job_position" placeholder="Job position"
options='{"no_open": True}'/>
</field>
</field>
</record>

9
crm_job_position/views/res_partner_view.xml

@ -10,8 +10,15 @@
<field name="function" position="before">
<field name="job_position"
placeholder="Job position"
attrs="{'invisible': [('is_company','=', True)]}"/>
attrs="{'invisible': [('is_company','=', True)]}"
options='{"no_open": True}'/>
</field>
<xpath expr="//field[@name='child_ids']/form//field[@name='function']" position="before">
<field name="job_position"
placeholder="Job position"
attrs="{'invisible': [('is_company','=', True)]}"
options='{"no_open": True}'/>
</xpath>
</field>
</record>

Loading…
Cancel
Save