diff --git a/odoo/custom/src/private/project_reference/README.rst b/odoo/custom/src/private/project_reference/README.rst new file mode 100644 index 0000000..aa085b6 --- /dev/null +++ b/odoo/custom/src/private/project_reference/README.rst @@ -0,0 +1,73 @@ +================= +Project Reference +================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproject-lightgray.png?logo=github + :target: https://github.com/OCA/project/tree/14.0/project_reference + :alt: OCA/project +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_reference + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/140/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of projects to support a reference for each project task + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Watthanun Khorchai + +Contributors +~~~~~~~~~~~~ + +* Watthanun Khorchai + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +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/odoo/custom/src/private/project_reference/__init__.py b/odoo/custom/src/private/project_reference/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/odoo/custom/src/private/project_reference/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/odoo/custom/src/private/project_reference/__manifest__.py b/odoo/custom/src/private/project_reference/__manifest__.py new file mode 100644 index 0000000..3a81933 --- /dev/null +++ b/odoo/custom/src/private/project_reference/__manifest__.py @@ -0,0 +1,14 @@ +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Project Reference", + "summary": "Add a reference to projects", + "version": "14.0.1.0.0", + "category": "Project", + "website": "https://github.com/OCA/project", + "author": "Watthanun Khorchai, Odoo Community Association (OCA)", + "license": "AGPL-3", + "depends": ["project"], + "data": ["views/project_task_view.xml"], + "installable": True, +} diff --git a/odoo/custom/src/private/project_reference/models/__init__.py b/odoo/custom/src/private/project_reference/models/__init__.py new file mode 100644 index 0000000..edf2d36 --- /dev/null +++ b/odoo/custom/src/private/project_reference/models/__init__.py @@ -0,0 +1 @@ +from . import project_task diff --git a/odoo/custom/src/private/project_reference/models/project_task.py b/odoo/custom/src/private/project_reference/models/project_task.py new file mode 100644 index 0000000..ec8de7a --- /dev/null +++ b/odoo/custom/src/private/project_reference/models/project_task.py @@ -0,0 +1,9 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ProjectTask(models.Model): + _inherit = "project.task" + + reference = fields.Char(string="Reference") diff --git a/odoo/custom/src/private/project_reference/readme/CONTRIBUTORS.rst b/odoo/custom/src/private/project_reference/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..bebd186 --- /dev/null +++ b/odoo/custom/src/private/project_reference/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Watthanun Khorchai diff --git a/odoo/custom/src/private/project_reference/readme/DESCRIPTION.rst b/odoo/custom/src/private/project_reference/readme/DESCRIPTION.rst new file mode 100644 index 0000000..fd57759 --- /dev/null +++ b/odoo/custom/src/private/project_reference/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module extends the functionality of projects to support a reference for each project task diff --git a/odoo/custom/src/private/project_reference/static/description/icon.png b/odoo/custom/src/private/project_reference/static/description/icon.png new file mode 100644 index 0000000..3a0328b Binary files /dev/null and b/odoo/custom/src/private/project_reference/static/description/icon.png differ diff --git a/odoo/custom/src/private/project_reference/static/description/index.html b/odoo/custom/src/private/project_reference/static/description/index.html new file mode 100644 index 0000000..2e42da3 --- /dev/null +++ b/odoo/custom/src/private/project_reference/static/description/index.html @@ -0,0 +1,419 @@ + + + + + + +Project Reference + + + +
+

Project Reference

+ + +

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

+

This module extends the functionality of projects to support a reference for each project task

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +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.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Watthanun Khorchai
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

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/odoo/custom/src/private/project_reference/views/project_task_view.xml b/odoo/custom/src/private/project_reference/views/project_task_view.xml new file mode 100644 index 0000000..7e91486 --- /dev/null +++ b/odoo/custom/src/private/project_reference/views/project_task_view.xml @@ -0,0 +1,13 @@ + + + + view_task_form2 + project.task + + + + + + + +