[FIX] crm: added a tracking on state, otherwise subtypes for won/lost were not activated.

bzr revid: tde@openerp.com-20121219111838-v80c932564zf3axl
This commit is contained in:
Thibault Delavallée 2012-12-19 12:18:38 +01:00
parent 91af1e1e59
commit 95897cf9ac
1 changed files with 1 additions and 0 deletions

View File

@ -261,6 +261,7 @@ class crm_lead(base_stage, format_address, osv.osv):
multi='day_close', type="float", store=True),
'state': fields.related('stage_id', 'state', type="selection", store=True,
selection=crm.AVAILABLE_STATES, string="Status", readonly=True,
track_visibility=1,
help='The Status is set to \'Draft\', when a case is created. If the case is in progress the Status is set to \'Open\'. When the case is over, the Status is set to \'Done\'. If the case needs to be reviewed then the Status is set to \'Pending\'.'),
# Only used for type opportunity