diff --git a/README.md b/README.md index 752dccba7b..620590e23b 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ addon | version | maintainers | summary [project_timeline_hr_timesheet](project_timeline_hr_timesheet/) | 15.0.1.0.0 | | Shows the progress of tasks on the timeline view. [project_timesheet_time_control](project_timesheet_time_control/) | 15.0.1.1.1 | [![ernestotejeda](https://github.com/ernestotejeda.png?size=30px)](https://github.com/ernestotejeda) | Project timesheet time control [project_type](project_type/) | 15.0.1.0.1 | | Project Types -[project_wbs](project_wbs/) | 15.0.1.1.0 | | Apply Work Breakdown Structure +[project_wbs](project_wbs/) | 15.0.1.1.1 | | Apply Work Breakdown Structure [sale_project_copy_tasks](sale_project_copy_tasks/) | 15.0.1.0.1 | [![shide](https://github.com/shide.png?size=30px)](https://github.com/shide) [![EmilioPascual](https://github.com/EmilioPascual.png?size=30px)](https://github.com/EmilioPascual) | Copy tasks into sale order's project [//]: # (end addons) diff --git a/project_wbs/README.rst b/project_wbs/README.rst index 254aa6bcd9..1b300c7092 100644 --- a/project_wbs/README.rst +++ b/project_wbs/README.rst @@ -7,7 +7,7 @@ Project Work Breakdown Structure !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:89c0fd245cfc9a6feea821d91d34ff4b6da5f9fabd2af14d0ace551ff2427671 + !! source digest: sha256:2a066d67c820c06658fa237cf47213efcac82d054a59ef2f3b470376cf01a780 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/project_wbs/__manifest__.py b/project_wbs/__manifest__.py index e8818e630e..ad62c4d8c7 100644 --- a/project_wbs/__manifest__.py +++ b/project_wbs/__manifest__.py @@ -6,7 +6,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Project Work Breakdown Structure", - "version": "15.0.1.1.0", + "version": "15.0.1.1.1", "license": "AGPL-3", "author": "Matmoz d.o.o., " "Luxim d.o.o., " diff --git a/project_wbs/models/account_analytic_account.py b/project_wbs/models/account_analytic_account.py index c3581dd202..41e886731c 100644 --- a/project_wbs/models/account_analytic_account.py +++ b/project_wbs/models/account_analytic_account.py @@ -106,7 +106,7 @@ def _wbs_indent_calc(self): @api.depends("account_class", "parent_id") def _compute_project_analytic_id(self): for analytic in self: - if analytic.parent_id: + if analytic.parent_id.filtered(lambda l: l.account_class == "project"): current = analytic.parent_id else: current = analytic diff --git a/project_wbs/static/description/index.html b/project_wbs/static/description/index.html index d5dce80185..69a23d67b1 100644 --- a/project_wbs/static/description/index.html +++ b/project_wbs/static/description/index.html @@ -366,7 +366,7 @@

Project Work Breakdown Structure

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:89c0fd245cfc9a6feea821d91d34ff4b6da5f9fabd2af14d0ace551ff2427671 +!! source digest: sha256:2a066d67c820c06658fa237cf47213efcac82d054a59ef2f3b470376cf01a780 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/project Translate me on Weblate Try me on Runboat

Adding WBS information to Odoo Projects