[FIX] context in search button + remove context type = lead in action + field type required
bzr revid: tfr@openerp.com-20110218132035-98sozsfsbiqi78ap
This commit is contained in:
parent
49ec83dd81
commit
03068fb1ee
|
@ -564,7 +564,7 @@ class crm_case_stage(osv.osv):
|
|||
'on_change': fields.boolean('Change Probability Automatically', \
|
||||
help="Change Probability on next and previous stages."),
|
||||
'requirements': fields.text('Requirements'),
|
||||
'type': fields.selection(_get_type_value, 'Type'),
|
||||
'type': fields.selection(_get_type_value, 'Type', required=True),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
<field name="arch" type="xml">
|
||||
<search string="Stage Search">
|
||||
<filter icon="terp-personal" name="lead"
|
||||
string="Lead" domain="[('type', '=', 'lead')]"/>
|
||||
string="Lead" domain="[('type', '=', 'lead')]" context="{'type' : 'lead'}"/>
|
||||
<filter icon="terp-personal+" name="opportunity"
|
||||
string="Opportunity" domain="[('type', '=', 'opportunity')]"/>
|
||||
string="Opportunity" domain="[('type', '=', 'opportunity')]" context="{'type' : 'opportunity'}"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="name"/>
|
||||
</search>
|
||||
|
@ -27,7 +27,7 @@
|
|||
<field name="res_model">crm.case.stage</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_id" ref="crm.crm_case_stage_tree"/>
|
||||
<field name="context">{'type':'lead','search_default_lead':1}</field>
|
||||
<field name="context">{'search_default_opportunity':1}</field>
|
||||
<field name="search_view_id" ref="crm_lead_stage_search"/>
|
||||
<field name="help">Add specific stages to leads and opportunities allowing your sales to better organise their sales pipeline. Stages will allow them to easily track how a specific lead or opportunity is positioned in the sales cycle.</field>
|
||||
</record>
|
||||
|
@ -348,7 +348,6 @@
|
|||
|
||||
<group expand="0" string="Extended Filters..." groups="base.group_extended">
|
||||
<field name="stage_id" widget="selection" domain="[('type', '=', 'lead')]"/>
|
||||
<field name="categ_id" widget="selection" domain="[('object_id.model', '=', 'crm.lead')]"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="country_id" context="{'invisible_country': False}">
|
||||
<filter icon="terp-personal+" context="{'invisible_country': False}" help="Show countries"/>
|
||||
|
|
Loading…
Reference in New Issue