diff --git a/project_wbs/README.rst b/project_wbs/README.rst index cfc2782e1d..c0f4f37f65 100644 --- a/project_wbs/README.rst +++ b/project_wbs/README.rst @@ -40,6 +40,8 @@ Adding WBS information to Odoo Projects * The complete WBS path name is shown in the analytic account and in the project * The WBS paths are concatenated with each other +* Project Manager is propagated to the hierarchy, the Manager is Manager + for the WBS element only Searching and Browsing WBS diff --git a/project_wbs/models/project_project.py b/project_wbs/models/project_project.py index c9232b2011..7aa7681fc8 100644 --- a/project_wbs/models/project_project.py +++ b/project_wbs/models/project_project.py @@ -293,6 +293,11 @@ def write(self, vals): if "active" in vals and vals["active"]: for project in self.filtered(lambda p: not p.analytic_account_id.active): project.analytic_account_id.active = True + if "user_id" in vals: + for account in self.env["account.analytic.account"].browse( + self.analytic_account_id.get_child_accounts().keys() + ): + account.user_id = vals["user_id"] return res def action_open_parent_kanban_view(self): diff --git a/project_wbs/readme/DESCRIPTION.rst b/project_wbs/readme/DESCRIPTION.rst index 2f1f755bf6..ee2e4bebbb 100644 --- a/project_wbs/readme/DESCRIPTION.rst +++ b/project_wbs/readme/DESCRIPTION.rst @@ -10,6 +10,8 @@ Adding WBS information to Odoo Projects * The complete WBS path name is shown in the analytic account and in the project * The WBS paths are concatenated with each other +* Project Manager is propagated to the hierarchy, the Manager is Manager + for the WBS element only Searching and Browsing WBS diff --git a/project_wbs/static/description/index.html b/project_wbs/static/description/index.html index a8e42ffaab..65487a1c70 100644 --- a/project_wbs/static/description/index.html +++ b/project_wbs/static/description/index.html @@ -1,4 +1,3 @@ - @@ -382,6 +381,8 @@

Project Work Breakdown Structure

  • The complete WBS path name is shown in the analytic account and in the project
  • The WBS paths are concatenated with each other
  • +
  • Project Manager is propagated to the hierarchy, the Manager is Manager +for the WBS element only
  • Searching and Browsing WBS