[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:
parent
6eb58cffe0
commit
6310275541
|
@ -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 """
|
||||
|
|
|
@ -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 """
|
||||
|
|
Loading…
Reference in New Issue