[MERGE]: project: fixed bug 898113: removed unnecessary _default_project method, task creation is still ok via default search values

bzr revid: tde@openerp.com-20120109102501-ssuo51ks6soddn55
This commit is contained in:
Thibault Delavallée 2012-01-09 11:25:01 +01:00
commit 62b509345a
1 changed files with 0 additions and 8 deletions

View File

@ -522,13 +522,6 @@ class task(osv.osv):
return {'value':{'partner_id':partner_id.id}}
return {}
def _default_project(self, cr, uid, context=None):
if context is None:
context = {}
if 'project_id' in context and context['project_id']:
return int(context['project_id'])
return False
def duplicate_task(self, cr, uid, map_ids, context=None):
for new in map_ids.values():
task = self.browse(cr, uid, new, context)
@ -642,7 +635,6 @@ class task(osv.osv):
'progress': 0,
'sequence': 10,
'active': True,
'project_id': _default_project,
'user_id': lambda obj, cr, uid, context: uid,
'company_id': lambda self, cr, uid, c: self.pool.get('res.company')._company_default_get(cr, uid, 'project.task', context=c)
}