~openerp-community/openobject-addons/rahal-trunk-addons

« back to all changes in this revision

Viewing changes to crm/crm_opportunity.py

  • Committer: Thibault Francois
  • Date: 2010-11-12 13:44:40 UTC
  • mfrom: (3164.153.45 trunk-dev-addons1)
  • Revision ID: tfr@openerp.com-20101112134440-drbjwz4in82irkav
Tags: openerp-buildfail-1-3251
[FIX,IMP] addons1 : 16 Bugs fix
Plugin improvement
Demo user has user right
crm leads logs stages changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
            @param uid: the current user’s ID for security checks,
143
143
            @param ids: List of stage’s IDs
144
144
            @stage_id: change state id on run time """
145
 
 
146
145
        if not stage_id:
147
146
            return {'value':{}}
148
147
 
149
148
        stage = self.pool.get('crm.case.stage').browse(cr, uid, stage_id, context)
 
149
 
150
150
        if not stage.on_change:
151
151
            return {'value':{}}
152
152
        return {'value':{'probability': stage.probability}}