[FIX]Project: Remove default_project_id method and default value for project_id.

bzr revid: atp@tinyerp.com-20111229125605-t0or55ru2wu18h4m
This commit is contained in:
Atul Patel (OpenERP)
2011-12-29 18:26:05 +05:30
parent d3866325f3
commit 09cccc74f9
-8
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)
}