Antonio Espinosa
10 years ago
committed by
Jairo Llopis
3 changed files with 120 additions and 64 deletions
-
86crm_capital/views/crm_lead_view.xml
-
46crm_capital/views/crm_turnover_range_view.xml
-
52crm_capital/views/res_partner_view.xml
@ -1,30 +1,66 @@ |
|||||
<?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_capital"> |
|
||||
<field name="name">CRM - Leads Form with capital info</field> |
|
||||
<field name="model">crm.lead</field> |
|
||||
<field name="inherit_id" ref="crm.crm_case_form_view_leads"/> |
|
||||
<field name="arch" type="xml"> |
|
||||
<field name="partner_id" position="before"> |
|
||||
<field name="capital_country"/> |
|
||||
<field name="capital_registered"/> |
|
||||
</field> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
<record model="ir.ui.view" id="crm_case_form_view_leads_capital"> |
||||
|
<field name="name">CRM - Leads Form with capital info</field> |
||||
|
<field name="model">crm.lead</field> |
||||
|
<field name="inherit_id" ref="crm.crm_case_form_view_leads"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<field name="partner_id" position="before"> |
||||
|
<field name="capital_country"/> |
||||
|
<field name="capital_registered"/> |
||||
|
<field name="turnover_range"/> |
||||
|
<field name="turnover_number"/> |
||||
|
</field> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
<record model="ir.ui.view" id="crm_case_form_view_oppor_capital"> |
|
||||
<field name="name">CRM - Leads Form with capital info</field> |
|
||||
<field name="model">crm.lead</field> |
|
||||
<field name="inherit_id" ref="crm.crm_case_form_view_oppor"/> |
|
||||
<field name="arch" type="xml"> |
|
||||
<field name="partner_id" position="before"> |
|
||||
<field name="capital_country"/> |
|
||||
<field name="capital_registered"/> |
|
||||
</field> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
<record model="ir.ui.view" id="view_crm_case_leads_filter_capital"> |
||||
|
<field name="name">CRM - Leads Search with capital</field> |
||||
|
<field name="model">crm.lead</field> |
||||
|
<field name="inherit_id" ref="crm.view_crm_case_leads_filter"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<filter string="Sales Team" position="after"> |
||||
|
<filter string="Capital country" |
||||
|
domain="[]" |
||||
|
context="{'group_by': 'capital_country'}"/> |
||||
|
<filter string="Turnover" |
||||
|
domain="[]" |
||||
|
context="{'group_by': 'turnover_number'}"/> |
||||
|
</filter> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
</data> |
|
||||
|
<record model="ir.ui.view" id="crm_case_form_view_oppor_capital"> |
||||
|
<field name="name">CRM - Leads Form with capital info</field> |
||||
|
<field name="model">crm.lead</field> |
||||
|
<field name="inherit_id" ref="crm.crm_case_form_view_oppor"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<field name="partner_id" position="before"> |
||||
|
<field name="capital_country"/> |
||||
|
<field name="capital_registered"/> |
||||
|
<field name="turnover_range"/> |
||||
|
<field name="turnover_number"/> |
||||
|
</field> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.ui.view" id="view_crm_case_opportunities_filter_capital"> |
||||
|
<field name="name">CRM - Leads Search with capital</field> |
||||
|
<field name="model">crm.lead</field> |
||||
|
<field name="inherit_id" ref="crm.view_crm_case_opportunities_filter"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<filter string="Sales Team" position="after"> |
||||
|
<filter string="Capital country" |
||||
|
domain="[]" |
||||
|
context="{'group_by': 'capital_country'}"/> |
||||
|
<filter string="Turnover" |
||||
|
domain="[]" |
||||
|
context="{'group_by': 'turnover_number'}"/> |
||||
|
</filter> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
</data> |
||||
</openerp> |
</openerp> |
@ -1,29 +1,29 @@ |
|||||
<?xml version="1.0"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
<openerp> |
<openerp> |
||||
<data> |
|
||||
|
<data> |
||||
|
|
||||
<record id="crm_turnover_range_action" model="ir.actions.act_window"> |
|
||||
<field name="name">Turnover ranges</field> |
|
||||
<field name="res_model">crm.turnover_range</field> |
|
||||
<field name="view_type">form</field> |
|
||||
<field name="view_mode">tree</field> |
|
||||
</record> |
|
||||
|
<record id="crm_turnover_range_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Turnover ranges</field> |
||||
|
<field name="res_model">crm.turnover_range</field> |
||||
|
<field name="view_type">form</field> |
||||
|
<field name="view_mode">tree</field> |
||||
|
</record> |
||||
|
|
||||
<record id="crm_turnover_range_tree_view" model="ir.ui.view"> |
|
||||
<field name="name">CRM Turnover range tree</field> |
|
||||
<field name="model">crm.turnover_range</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<tree string="Turnover ranges" editable="bottom"> |
|
||||
<field name="name"/> |
|
||||
</tree> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
<record id="crm_turnover_range_tree_view" model="ir.ui.view"> |
||||
|
<field name="name">CRM Turnover range tree</field> |
||||
|
<field name="model">crm.turnover_range</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree string="Turnover ranges" editable="bottom"> |
||||
|
<field name="name"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
<menuitem action="crm_turnover_range_action" |
|
||||
id="menu_crm_turnover_range" |
|
||||
name="Turnover ranges" |
|
||||
parent="base.menu_crm_config_lead" |
|
||||
sequence="5"/> |
|
||||
|
<menuitem action="crm_turnover_range_action" |
||||
|
id="menu_crm_turnover_range" |
||||
|
name="Turnover ranges" |
||||
|
parent="base.menu_crm_config_lead" |
||||
|
sequence="5"/> |
||||
|
|
||||
</data> |
|
||||
|
</data> |
||||
</openerp> |
</openerp> |
@ -1,20 +1,40 @@ |
|||||
<?xml version="1.0"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
<openerp> |
<openerp> |
||||
<data> |
|
||||
|
<data> |
||||
|
|
||||
<record model="ir.ui.view" id="view_partner_form_capital"> |
|
||||
<field name="name">Partner form with capital info</field> |
|
||||
<field name="model">res.partner</field> |
|
||||
<field name="inherit_id" ref="base.view_partner_form"/> |
|
||||
<field name="arch" type="xml"> |
|
||||
<field name="phone" position="before"> |
|
||||
<field name="capital_country" |
|
||||
attrs="{'invisible': [('is_company', '=', False)]}"/> |
|
||||
<field name="capital_registered" |
|
||||
attrs="{'invisible': [('is_company', '=', False)]}"/> |
|
||||
</field> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
<record model="ir.ui.view" id="view_partner_form_capital"> |
||||
|
<field name="name">Partner form with capital info</field> |
||||
|
<field name="model">res.partner</field> |
||||
|
<field name="inherit_id" ref="base.view_partner_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<field name="phone" position="before"> |
||||
|
<field name="capital_country" |
||||
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
||||
|
<field name="capital_registered" |
||||
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
||||
|
<field name="turnover_range" |
||||
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
||||
|
<field name="turnover_number" |
||||
|
attrs="{'invisible': [('is_company', '=', False)]}"/> |
||||
|
</field> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
</data> |
|
||||
|
<record model="ir.ui.view" id="view_res_partner_filter_capital"> |
||||
|
<field name="name">Partner search with capital</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="Capital country" |
||||
|
domain="[('is_company', '=', True)]" |
||||
|
context="{'group_by': 'capital_country'}"/> |
||||
|
<filter string="Turnover" |
||||
|
domain="[('is_company', '=', True)]" |
||||
|
context="{'group_by': 'turnover_number'}"/> |
||||
|
</filter> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
</data> |
||||
</openerp> |
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue