[IMP] Add default stage for surveys

bzr revid: rim@openerp.com-20140409145945-r32tdnexrbjxousu
This commit is contained in:
Richard Mathot (OpenERP) 2014-04-09 16:59:45 +02:00
parent d1070a8ad0
commit 7dbc51e0d4
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,8 @@ class survey_survey(osv.Model):
}
_defaults = {
'color': 0
'color': 0,
'stage_id': lambda self, cr, uid, context: self.pool.get('survey.stage').search_read(cr, uid, fields=['id'], order='sequence asc', limit=1, context=context)[0]['id']
}
def _read_group_stage_ids(self, cr, uid, ids, domain, read_group_order=None, access_rights_uid=None, context=None):