diff --git a/project_forecast_line_priority/README.rst b/project_forecast_line_priority/README.rst index 2f1cb24254..8c20d2f0ff 100644 --- a/project_forecast_line_priority/README.rst +++ b/project_forecast_line_priority/README.rst @@ -7,7 +7,7 @@ Project Forecast Line Priority !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:5dc5edab8806a01382424f844da33b49a42bf47b328a2843830f8293e10eeebe + !! source digest: sha256:f5a6d079b4f8a856e55ba8628374876a2002d84a7990d82a2b3b6612f5214e2c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png @@ -77,6 +77,14 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. +.. |maintainer-ntsirintanis| image:: https://github.com/ntsirintanis.png?size=40px + :target: https://github.com/ntsirintanis + :alt: ntsirintanis + +Current `maintainer `__: + +|maintainer-ntsirintanis| + This module is part of the `OCA/project `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/project_forecast_line_priority/models/project_task.py b/project_forecast_line_priority/models/project_task.py index 8af538d917..efcbd4f84f 100644 --- a/project_forecast_line_priority/models/project_task.py +++ b/project_forecast_line_priority/models/project_task.py @@ -42,6 +42,9 @@ def _update_forecast_lines(self): def _get_forecast_date_planned(self, priority=None): """Update forecast date end based on priority""" + self.ensure_one() + if self.date_deadline: + return False config_model = self.env["ir.config_parameter"] priority = priority or self.priority selection = config_model.get_param( diff --git a/project_forecast_line_priority/static/description/index.html b/project_forecast_line_priority/static/description/index.html index bbc1da3e31..110d989407 100644 --- a/project_forecast_line_priority/static/description/index.html +++ b/project_forecast_line_priority/static/description/index.html @@ -367,7 +367,7 @@

Project Forecast Line Priority

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:5dc5edab8806a01382424f844da33b49a42bf47b328a2843830f8293e10eeebe +!! source digest: sha256:f5a6d079b4f8a856e55ba8628374876a2002d84a7990d82a2b3b6612f5214e2c !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

This module recomputes forecast line end dates based on the priority of connected task(s)

@@ -419,6 +419,8 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

+

Current maintainer:

+

ntsirintanis

This module is part of the OCA/project project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.