diff --git a/project_only_current_project_tasks_as_parent/README.rst b/project_only_current_project_tasks_as_parent/README.rst new file mode 100644 index 0000000..be55bf0 --- /dev/null +++ b/project_only_current_project_tasks_as_parent/README.rst @@ -0,0 +1,44 @@ +============================================ +project_only_current_project_tasks_as_parent +============================================ + +when selecting a parent task in a task, display only tasks from the current project + +Installation +============ + +Use Odoo normal module installation procedure to install ``project_only_current_project_tasks_as_parent``. + +Known issues / Roadmap +====================== + +None yet. + +Bug Tracker +=========== + +Bugs are tracked on `our issues website `_. In case of +trouble, please check there if your issue has already been +reported. If you spotted it first, help us smashing it by providing a +detailed and welcomed feedback. + +Credits +======= + +Contributors +------------ + +* Laetitia Da Costa (https://github.com/LaetitiaElabore) +* Stéphan Sainléger (https://github.com/stephansainleger) + +Funders +------- + +The development of this module has been financially supported by: +* Elabore (https://elabore.coop) + + +Maintainer +---------- + +This module is maintained by Elabore. diff --git a/project_only_current_project_tasks_as_parent/__init__.py b/project_only_current_project_tasks_as_parent/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/project_only_current_project_tasks_as_parent/__manifest__.py b/project_only_current_project_tasks_as_parent/__manifest__.py new file mode 100644 index 0000000..866f210 --- /dev/null +++ b/project_only_current_project_tasks_as_parent/__manifest__.py @@ -0,0 +1,37 @@ +# Copyright 2022 Laetitia Da Costa (Elabore) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "project_only_current_project_tasks_as_parent", + "version": "18.0.1.0.0", + "author": "Elabore", + "website": "https://elabore.coop", + "maintainer": "Laetitia Da Costa", + "license": "AGPL-3", + "category": "Project", + "summary": "In parent's tasks dropdown field, show only tasks from the current projet", + # any module necessary for this one to work correctly + "depends": [ + "base", + "project", + ], + "qweb": [ + # "static/src/xml/*.xml", + ], + "external_dependencies": { + "python": [], + }, + # always loaded + "data": [ + "views/project_task.xml", + ], + # only loaded in demonstration mode + "demo": [], + "js": [], + "css": [], + "installable": True, + # Install this module automatically if all dependency have been previously + # and independently installed. Used for synergetic or glue modules. + "auto_install": False, + "application": False, +} diff --git a/project_only_current_project_tasks_as_parent/views/project_task.xml b/project_only_current_project_tasks_as_parent/views/project_task.xml new file mode 100644 index 0000000..bb8fbc5 --- /dev/null +++ b/project_only_current_project_tasks_as_parent/views/project_task.xml @@ -0,0 +1,13 @@ + + + + view.tasks.form2.parent.project.inherited + project.task + + + + [('project_id','=', project_id), ('stage_id.fold', '=', False)] + + + +