project default updated

This commit is contained in:
projectsodoo 2021-01-07 10:04:44 +05:30
parent cdf16a972b
commit 23e85a9101
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Project(models.Model):
def action_view_project_forecast_action_from_project(self):
action = self.env["ir.actions.actions"]._for_xml_id("project_forecast.project_forecast_action_from_project")
action['context'] = {'default_project_id': self.id}
action['context'] = {'default_project_id': self.id, 'search_default_project_id': [self.id]}
return action