[IMP]: crm: Added proper domain for Categories of lead/opportunity, and moved its action and menu in proper file

bzr revid: rpa@tinyerp.com-20100811131524-es7794npltvlbk7d
This commit is contained in:
rpa (Open ERP) 2010-08-11 18:45:24 +05:30
parent 54367603a0
commit 91e975bb29
2 changed files with 14 additions and 13 deletions

View File

@ -18,6 +18,20 @@
parent="base.menu_crm_config_lead" />
<!-- Lead/Opportunity Categories Action -->
<record id="crm_lead_categ_action" model="ir.actions.act_window">
<field name="name">Categories</field>
<field name="res_model">crm.case.categ</field>
<field name="view_type">form</field>
<field name="view_id" ref="crm_case_categ_tree-view"/>
<field name="domain">[('object_id.model', '=', 'crm.lead')]</field>
</record>
<menuitem action="crm_lead_categ_action"
id="menu_crm_lead_categ" name="Categories"
parent="base.menu_crm_config_lead" sequence="1"/>
<!-- Resource Type Form View -->
<record id="crm_lead_resource_act" model="ir.actions.act_window">
<field name="name">Lead Sources</field>

View File

@ -170,19 +170,6 @@
</field>
</record>
<!-- Case Categories Action -->
<record id="crm_case_categ-act" model="ir.actions.act_window">
<field name="name">Categories</field>
<field name="res_model">crm.case.categ</field>
<field name="view_type">form</field>
<field name="view_id" ref="crm_case_categ_tree-view"/>
</record>
<menuitem action="crm_case_categ-act"
id="menu_crm_case_categ-act" name="Categories"
parent="base.menu_crm_config_lead" sequence="1"/>
<!-- Resource Type of case Tree View -->
<record model="ir.ui.view" id="crm_case_resource_type_tree">