Skip to content

Commit

Permalink
Merge PR #1226 into 14.0
Browse files Browse the repository at this point in the history
Signed-off-by dreispt
  • Loading branch information
OCA-git-bot committed Apr 29, 2024
2 parents 3601748 + 2c3fb3d commit 60ecb15
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion project_wbs/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Project Work Breakdown Structure
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bd0f8337f6daef12c581e5bf812514ea3b26215d3a32fbd7199bc56f4c469d3a
!! source digest: sha256:aa9d52682c071ee7807b2687914ccda3f1a2d634bc0a176a80140af46e73379c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions project_wbs/models/project_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 2 additions & 0 deletions project_wbs/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion project_wbs/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Project Work Breakdown Structure</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:bd0f8337f6daef12c581e5bf812514ea3b26215d3a32fbd7199bc56f4c469d3a
!! source digest: sha256:aa9d52682c071ee7807b2687914ccda3f1a2d634bc0a176a80140af46e73379c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/project/tree/14.0/project_wbs"><img alt="OCA/project" src="https://img.shields.io/badge/github-OCA%2Fproject-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_wbs"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/project&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Adding WBS information to Odoo Projects</p>
Expand All @@ -382,6 +382,8 @@ <h1 class="title">Project Work Breakdown Structure</h1>
<li>The complete WBS path name is shown in the analytic account and in the
project</li>
<li>The WBS paths are concatenated with each other</li>
<li>Project Manager is propagated to the hierarchy, the Manager is Manager
for the WBS element only</li>
</ul>
<p>Searching and Browsing WBS</p>
<ul class="simple">
Expand Down

0 comments on commit 60ecb15

Please sign in to comment.