[fix] previous stage in claim fix + change config menu in crm
bzr revid: tfr@openerp.com-20110208094831-f1f001t453f660a4
This commit is contained in:
parent
ede3cf69a3
commit
6c81b6a9c1
|
@ -218,12 +218,12 @@ class crm_case(object):
|
|||
def stage_change(self, cr, uid, ids, context=None, order='sequence'):
|
||||
if context is None:
|
||||
context = {}
|
||||
stage_pool = self.pool.get('crm.case.stage')
|
||||
stage_pool = self.pool.get('crm.case.setage')
|
||||
stage_type = context and context.get('stage_type','')
|
||||
current_seq = False
|
||||
next_stage_id = False
|
||||
|
||||
for case in self.browse(cr, uid, ids, context=context):
|
||||
stage_type = case.type
|
||||
next_stage = False
|
||||
value = {}
|
||||
if case.section_id.id :
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
|
||||
|
||||
<menuitem action="crm_lead_stage_act" id="menu_crm_lead_stage_act" name="Stages"
|
||||
<menuitem action="crm_lead_stage_act" id="menu_crm_lead_stage_act" name="Lead stages"
|
||||
groups="base.group_extended" sequence="0"
|
||||
parent="base.menu_crm_config_lead" />
|
||||
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
|
||||
|
||||
|
||||
<menuitem action="crm_opportunity_stage_act" id="menu_crm_opportunity_stage_act" name="Stages"
|
||||
<menuitem action="crm_opportunity_stage_act" id="menu_crm_opportunity_stage_act" name="Opportunity stages"
|
||||
groups="base.group_extended" sequence="0"
|
||||
parent="base.menu_crm_config_opportunity" />
|
||||
parent="base.menu_crm_config_lead" />
|
||||
|
||||
<!-- Opportunities Form View -->
|
||||
<record model="ir.ui.view" id="crm_case_form_view_oppor">
|
||||
|
@ -35,7 +35,7 @@
|
|||
domain="[('type','=','opportunity'),('section_ids', '=', section_id)]"/>
|
||||
<button name="stage_previous"
|
||||
states="draft,open,pending" type="object"
|
||||
icon="gtk-go-back" string="" />
|
||||
icon="gtk-go-back" string="" context="{'stage_type': 'opportunity'}"/>
|
||||
<button name="stage_next" states="draft,open,pending"
|
||||
type="object" icon="gtk-go-forward" string="" context="{'stage_type': 'opportunity'}"/>
|
||||
</group>
|
||||
|
|
Loading…
Reference in New Issue