Browse Source

[FIX] XML revised

pull/225/head
Antonio Espinosa 10 years ago
committed by Jairo Llopis
parent
commit
8031039e72
  1. 16
      crm_employees/views/crm_employees_range_view.xml
  2. 14
      crm_employees/views/crm_lead_view.xml
  3. 23
      crm_employees/views/res_partner_view.xml

16
crm_employees/views/crm_employees_range_view.xml

@ -1,15 +1,15 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>
<openerp> <openerp>
<data>
<data>
<record id="crm_employees_range_action" model="ir.actions.act_window">
<record id="crm_employees_range_action" model="ir.actions.act_window">
<field name="name">Employees ranges</field> <field name="name">Employees ranges</field>
<field name="res_model">crm.employees_range</field> <field name="res_model">crm.employees_range</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_employees_range_tree_view" model="ir.ui.view">
<record id="crm_employees_range_tree_view" model="ir.ui.view">
<field name="name">CRM employees_range tree</field> <field name="name">CRM employees_range tree</field>
<field name="model">crm.employees_range</field> <field name="model">crm.employees_range</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
@ -17,13 +17,13 @@
<field name="name"/> <field name="name"/>
</tree> </tree>
</field> </field>
</record>
</record>
<menuitem action="crm_employees_range_action"
<menuitem action="crm_employees_range_action"
id="menu_crm_employees_range" id="menu_crm_employees_range"
name="Employees ranges" name="Employees ranges"
parent="base.menu_crm_config_lead" parent="base.menu_crm_config_lead"
sequence="5"/> sequence="5"/>
</data>
</data>
</openerp> </openerp>

14
crm_employees/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_employees">
<record model="ir.ui.view" id="crm_case_form_view_leads_employees">
<field name="name">CRM - Leads Form with employees</field> <field name="name">CRM - Leads Form with employees</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"/>
@ -12,9 +12,9 @@
<field name="employees_number"/> <field name="employees_number"/>
</field> </field>
</field> </field>
</record>
</record>
<record model="ir.ui.view" id="crm_case_form_view_oppor_employees">
<record model="ir.ui.view" id="crm_case_form_view_oppor_employees">
<field name="name">CRM - Leads Form with employees</field> <field name="name">CRM - Leads Form with employees</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"/>
@ -24,7 +24,7 @@
<field name="employees_number"/> <field name="employees_number"/>
</field> </field>
</field> </field>
</record>
</record>
</data>
</data>
</openerp> </openerp>

23
crm_employees/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_employees">
<record model="ir.ui.view" id="view_partner_form_employees">
<field name="name">Partner form with employees</field> <field name="name">Partner form with employees</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"/>
@ -14,7 +14,20 @@
attrs="{'invisible': [('is_company', '=', False)]}"/> attrs="{'invisible': [('is_company', '=', False)]}"/>
</field> </field>
</field> </field>
</record>
</record>
</data>
<record model="ir.ui.view" id="view_res_partner_filter_employees">
<field name="name">Partner search with employees</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">
<filter string="Salesperson" position="after">
<filter string="Emplooyees"
domain="[('is_company','=', True)]"
context="{'group_by': 'employees_range'}"/>
</filter>
</field>
</record>
</data>
</openerp> </openerp>
Loading…
Cancel
Save