Browse Source

[FIX] XML revised

pull/226/head
Antonio Espinosa 10 years ago
committed by Jairo Llopis
parent
commit
c3d8658ea7
  1. 16
      crm_job_position/views/crm_job_position_view.xml
  2. 38
      crm_job_position/views/crm_lead_view.xml
  3. 24
      crm_job_position/views/res_partner_view.xml

16
crm_job_position/views/crm_job_position_view.xml

@ -1,15 +1,15 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data>
<data>
<record id="crm_job_position_action" model="ir.actions.act_window">
<record id="crm_job_position_action" model="ir.actions.act_window">
<field name="name">Job positions</field> <field name="name">Job positions</field>
<field name="res_model">crm.job_position</field> <field name="res_model">crm.job_position</field>
<field name="view_type">form</field> <field name="view_type">form</field>
<field name="view_mode">tree</field> <field name="view_mode">tree</field>
</record>
</record>
<record id="crm_job_position_tree_view" model="ir.ui.view">
<record id="crm_job_position_tree_view" model="ir.ui.view">
<field name="name">CRM job_position tree</field> <field name="name">CRM job_position tree</field>
<field name="model">crm.job_position</field> <field name="model">crm.job_position</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
@ -18,13 +18,13 @@
<field name="parent_id"/> <field name="parent_id"/>
</tree> </tree>
</field> </field>
</record>
</record>
<menuitem action="crm_job_position_action"
<menuitem action="crm_job_position_action"
id="menu_crm_job_position" id="menu_crm_job_position"
name="Job positions" name="Job positions"
parent="base.menu_crm_config_lead" parent="base.menu_crm_config_lead"
sequence="3"/> sequence="3"/>
</data>
</data>
</openerp> </openerp>

38
crm_job_position/views/crm_lead_view.xml

@ -1,8 +1,8 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data>
<data>
<record model="ir.ui.view" id="crm_case_form_view_leads_job_position">
<record model="ir.ui.view" id="crm_case_form_view_leads_job_position">
<field name="name">CRM - Leads Form with job positions</field> <field name="name">CRM - Leads Form with job positions</field>
<field name="model">crm.lead</field> <field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_form_view_leads"/> <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
@ -11,10 +11,10 @@
<field name="job_position"/> <field name="job_position"/>
</field> </field>
</field> </field>
</record>
</record>
<!-- Uncomment this to add a new column to tree view
<record model="ir.ui.view" id="crm_case_tree_view_leads_job_position">
<!-- Uncomment this to add a new column to tree view
<record model="ir.ui.view" id="crm_case_tree_view_leads_job_position">
<field name="name">Leads with job_position</field> <field name="name">Leads with job_position</field>
<field name="model">crm.lead</field> <field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_leads"/> <field name="inherit_id" ref="crm.crm_case_tree_view_leads"/>
@ -23,10 +23,10 @@
<field name="job_position"/> <field name="job_position"/>
</field> </field>
</field> </field>
</record>
-->
</record>
-->
<record model="ir.ui.view" id="view_crm_case_leads_filter_job_position">
<record model="ir.ui.view" id="view_crm_case_leads_filter_job_position">
<field name="name">CRM - Leads Search with job positions</field> <field name="name">CRM - Leads Search with job positions</field>
<field name="model">crm.lead</field> <field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.view_crm_case_leads_filter"/> <field name="inherit_id" ref="crm.view_crm_case_leads_filter"/>
@ -40,9 +40,9 @@
context="{'group_by': 'job_position'}"/> context="{'group_by': 'job_position'}"/>
</filter> </filter>
</field> </field>
</record>
</record>
<record model="ir.ui.view" id="crm_case_form_view_oppor_job_position">
<record model="ir.ui.view" id="crm_case_form_view_oppor_job_position">
<field name="name">CRM - Leads Form with job position</field> <field name="name">CRM - Leads Form with job position</field>
<field name="model">crm.lead</field> <field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_form_view_oppor"/> <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
@ -51,10 +51,10 @@
<field name="job_position"/> <field name="job_position"/>
</field> </field>
</field> </field>
</record>
</record>
<!-- Uncomment this to add a new column to tree view
<record model="ir.ui.view" id="crm_case_tree_view_oppor_job_position">
<!-- Uncomment this to add a new column to tree view
<record model="ir.ui.view" id="crm_case_tree_view_oppor_job_position">
<field name="name">Leads with job position</field> <field name="name">Leads with job position</field>
<field name="model">crm.lead</field> <field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor"/> <field name="inherit_id" ref="crm.crm_case_tree_view_oppor"/>
@ -63,10 +63,10 @@
<field name="job_position"/> <field name="job_position"/>
</field> </field>
</field> </field>
</record>
-->
</record>
-->
<record model="ir.ui.view" id="view_crm_case_opportunities_filter_job_position">
<record model="ir.ui.view" id="view_crm_case_opportunities_filter_job_position">
<field name="name">CRM - Leads Search with job positions</field> <field name="name">CRM - Leads Search with job positions</field>
<field name="model">crm.lead</field> <field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.view_crm_case_opportunities_filter"/> <field name="inherit_id" ref="crm.view_crm_case_opportunities_filter"/>
@ -80,7 +80,7 @@
context="{'group_by': 'job_position'}"/> context="{'group_by': 'job_position'}"/>
</filter> </filter>
</field> </field>
</record>
</record>
</data>
</data>
</openerp> </openerp>

24
crm_job_position/views/res_partner_view.xml

@ -1,8 +1,8 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data>
<data>
<record model="ir.ui.view" id="view_partner_form_job_position">
<record model="ir.ui.view" id="view_partner_form_job_position">
<field name="name">Partner form with job position</field> <field name="name">Partner form with job position</field>
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/> <field name="inherit_id" ref="base.view_partner_form"/>
@ -13,10 +13,10 @@
attrs="{'invisible': [('is_company','=', True)]}"/> attrs="{'invisible': [('is_company','=', True)]}"/>
</field> </field>
</field> </field>
</record>
</record>
<!-- Uncomment this to add a new column to tree view
<record model="ir.ui.view" id="view_partner_tree_job_position">
<!-- Uncomment this to add a new column to tree view
<record model="ir.ui.view" id="view_partner_tree_job_position">
<field name="name">Partner tree with job position</field> <field name="name">Partner tree with job position</field>
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_tree"/> <field name="inherit_id" ref="base.view_partner_tree"/>
@ -25,10 +25,10 @@
<field name="job_position"/> <field name="job_position"/>
</field> </field>
</field> </field>
</record>
-->
</record>
-->
<record model="ir.ui.view" id="view_res_partner_filter_job_position">
<record model="ir.ui.view" id="view_res_partner_filter_job_position">
<field name="name">Partner search with job position</field> <field name="name">Partner search with job position</field>
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter"/> <field name="inherit_id" ref="base.view_res_partner_filter"/>
@ -38,11 +38,11 @@
</field> </field>
<filter string="Salesperson" position="after"> <filter string="Salesperson" position="after">
<filter string="Job position" <filter string="Job position"
domain="[]"
domain="[('is_company','=', True)]"
context="{'group_by': 'job_position'}"/> context="{'group_by': 'job_position'}"/>
</filter> </filter>
</field> </field>
</record>
</record>
</data>
</data>
</openerp> </openerp>
Loading…
Cancel
Save