Antonio Espinosa
10 years ago
committed by
Jairo Llopis
3 changed files with 143 additions and 143 deletions
-
48crm_job_position/views/crm_job_position_view.xml
-
154crm_job_position/views/crm_lead_view.xml
-
84crm_job_position/views/res_partner_view.xml
@ -1,30 +1,30 @@ |
|||
<?xml version="1.0"?> |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<data> |
|||
|
|||
<record id="crm_job_position_action" model="ir.actions.act_window"> |
|||
<field name="name">Job positions</field> |
|||
<field name="res_model">crm.job_position</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree</field> |
|||
</record> |
|||
<record id="crm_job_position_action" model="ir.actions.act_window"> |
|||
<field name="name">Job positions</field> |
|||
<field name="res_model">crm.job_position</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree</field> |
|||
</record> |
|||
|
|||
<record id="crm_job_position_tree_view" model="ir.ui.view"> |
|||
<field name="name">CRM job_position tree</field> |
|||
<field name="model">crm.job_position</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Job positions" editable="bottom"> |
|||
<field name="name"/> |
|||
<field name="parent_id"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
<record id="crm_job_position_tree_view" model="ir.ui.view"> |
|||
<field name="name">CRM job_position tree</field> |
|||
<field name="model">crm.job_position</field> |
|||
<field name="arch" type="xml"> |
|||
<tree string="Job positions" editable="bottom"> |
|||
<field name="name"/> |
|||
<field name="parent_id"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
|
|||
<menuitem action="crm_job_position_action" |
|||
id="menu_crm_job_position" |
|||
name="Job positions" |
|||
parent="base.menu_crm_config_lead" |
|||
sequence="3"/> |
|||
<menuitem action="crm_job_position_action" |
|||
id="menu_crm_job_position" |
|||
name="Job positions" |
|||
parent="base.menu_crm_config_lead" |
|||
sequence="3"/> |
|||
|
|||
</data> |
|||
</data> |
|||
</openerp> |
@ -1,86 +1,86 @@ |
|||
<?xml version="1.0"?> |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<data> |
|||
|
|||
<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="model">crm.lead</field> |
|||
<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> |
|||
</field> |
|||
</record> |
|||
<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="model">crm.lead</field> |
|||
<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> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- 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="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.crm_case_tree_view_leads"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="function" position="before"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
--> |
|||
<!-- 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="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.crm_case_tree_view_leads"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="function" position="before"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
--> |
|||
|
|||
<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="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.view_crm_case_leads_filter"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="section_id" position="after"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
<filter string="Sales Team" position="after"> |
|||
<filter string="job_position" |
|||
domain="[]" |
|||
context="{'group_by': 'job_position'}"/> |
|||
</filter> |
|||
</field> |
|||
</record> |
|||
<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="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.view_crm_case_leads_filter"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="section_id" position="after"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
<filter string="Sales Team" position="after"> |
|||
<filter string="job_position" |
|||
domain="[]" |
|||
context="{'group_by': 'job_position'}"/> |
|||
</filter> |
|||
</field> |
|||
</record> |
|||
|
|||
<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="model">crm.lead</field> |
|||
<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> |
|||
</field> |
|||
</record> |
|||
<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="model">crm.lead</field> |
|||
<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> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- 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="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="section_id" position="after"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
--> |
|||
<!-- 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="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="section_id" position="after"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
--> |
|||
|
|||
<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="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.view_crm_case_opportunities_filter"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="section_id" position="after"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
<filter string="Sales Team" position="after"> |
|||
<filter string="Job position" |
|||
domain="[]" |
|||
context="{'group_by': 'job_position'}"/> |
|||
</filter> |
|||
</field> |
|||
</record> |
|||
<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="model">crm.lead</field> |
|||
<field name="inherit_id" ref="crm.view_crm_case_opportunities_filter"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="section_id" position="after"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
<filter string="Sales Team" position="after"> |
|||
<filter string="Job position" |
|||
domain="[]" |
|||
context="{'group_by': 'job_position'}"/> |
|||
</filter> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</data> |
|||
</openerp> |
@ -1,48 +1,48 @@ |
|||
<?xml version="1.0"?> |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<data> |
|||
|
|||
<record model="ir.ui.view" id="view_partner_form_job_position"> |
|||
<field name="name">Partner form with job position</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_partner_form"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="function" position="before"> |
|||
<field name="job_position" |
|||
placeholder="Job position" |
|||
attrs="{'invisible': [('is_company','=', True)]}"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
<record model="ir.ui.view" id="view_partner_form_job_position"> |
|||
<field name="name">Partner form with job position</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_partner_form"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="function" position="before"> |
|||
<field name="job_position" |
|||
placeholder="Job position" |
|||
attrs="{'invisible': [('is_company','=', True)]}"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- 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="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_partner_tree"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="email" position="after"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
--> |
|||
<!-- 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="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_partner_tree"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="email" position="after"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
--> |
|||
|
|||
<record model="ir.ui.view" id="view_res_partner_filter_job_position"> |
|||
<field name="name">Partner search with job position</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_res_partner_filter"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="category_id" position="after"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
<filter string="Salesperson" position="after"> |
|||
<filter string="Job position" |
|||
domain="[]" |
|||
context="{'group_by': 'job_position'}"/> |
|||
</filter> |
|||
</field> |
|||
</record> |
|||
<record model="ir.ui.view" id="view_res_partner_filter_job_position"> |
|||
<field name="name">Partner search with job position</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_res_partner_filter"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="category_id" position="after"> |
|||
<field name="job_position"/> |
|||
</field> |
|||
<filter string="Salesperson" position="after"> |
|||
<filter string="Job position" |
|||
domain="[('is_company','=', True)]" |
|||
context="{'group_by': 'job_position'}"/> |
|||
</filter> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue