Skip to content

Commit

Permalink
[MERGE] forward port branch 9.0 up to 4432e1d
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Feb 21, 2018
2 parents 2bdc0cc + 4432e1d commit aad677c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addons/project/models/project.py
Expand Up @@ -394,7 +394,8 @@ def _read_group_stage_ids(self, stages, domain, order):
@api.onchange('project_id')
def _onchange_project(self):
if self.project_id:
self.partner_id = self.project_id.partner_id
if self.project_id.partner_id:
self.partner_id = self.project_id.partner_id
self.stage_id = self.stage_find(self.project_id.id, [('fold', '=', False)])
else:
self.stage_id = False
Expand Down

0 comments on commit aad677c

Please sign in to comment.