[FIX] project, project_issue: fixed get_default_partner not defined anymore, because of the inheritance towards base_stage removal.

bzr revid: tde@openerp.com-20130709133859-jy4aqz6tsrtsqv81
This commit is contained in:
Thibault Delavallée 2013-07-09 15:38:59 +02:00
parent 6eb58cffe0
commit 6310275541
2 changed files with 2 additions and 2 deletions

View File

@ -582,7 +582,7 @@ class task(osv.osv):
project = self.pool.get('project.project').browse(cr, uid, project_id, context=context)
if project and project.partner_id:
return project.partner_id.id
return super(task, self)._get_default_partner(cr, uid, context=context)
return False
def _get_default_project_id(self, cr, uid, context=None):
""" Gives default section by checking if present in the context """

View File

@ -75,7 +75,7 @@ class project_issue(osv.Model):
project = self.pool.get('project.project').browse(cr, uid, project_id, context=context)
if project and project.partner_id:
return project.partner_id.id
return super(project_issue, self)._get_default_partner(cr, uid, context=context)
return False
def _get_default_project_id(self, cr, uid, context=None):
""" Gives default project by checking if present in the context """