diff --git a/coopiteasy_custom/README.rst b/coopiteasy_custom/README.rst new file mode 100644 index 00000000..e2953aae --- /dev/null +++ b/coopiteasy_custom/README.rst @@ -0,0 +1,60 @@ +========================== +Coop IT Easy Customization +========================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-coopiteasy%2Fcie--custom-lightgray.png?logo=github + :target: https://github.com/coopiteasy/cie-custom/tree/12.0/coopiteasy_custom + :alt: coopiteasy/cie-custom + +|badge1| |badge2| |badge3| + +This module was emptied on migration to v16. It can be safely uninstalled. + +**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 +~~~~~~~ + +* Coop IT Easy SC + +Contributors +~~~~~~~~~~~~ + +* `Coop IT Easy SC `_: + + * Robin Keunen + * Carmen Bianca Bakker + +Maintainers +~~~~~~~~~~~ + +This module is part of the `coopiteasy/cie-custom `_ project on GitHub. + +You are welcome to contribute. diff --git a/coopiteasy_custom/__init__.py b/coopiteasy_custom/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/coopiteasy_custom/__manifest__.py b/coopiteasy_custom/__manifest__.py new file mode 100644 index 00000000..ab9d5f5a --- /dev/null +++ b/coopiteasy_custom/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2019 Coop IT Easy SCRL fs +# Robin Keunen +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + + +{ + "name": "Coop IT Easy Customization", + "version": "16.0.1.0.0", + "author": "Coop IT Easy SC", + "license": "AGPL-3", + "category": "", + "website": "https://coopiteasy.be", + "summary": """ + Emptied. + """, + "depends": [ + "task_author_id", + ], + "installable": True, +} diff --git a/coopiteasy_custom/migrations/post-migrate.py b/coopiteasy_custom/migrations/post-migrate.py new file mode 100644 index 00000000..16468097 --- /dev/null +++ b/coopiteasy_custom/migrations/post-migrate.py @@ -0,0 +1,17 @@ +# Copyright 2024 Coop IT Easy SC +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + env.cr.execute( + """ + alter table project_task drop column if exists reviewer_id; + alter table project_task drop column if exists tester_id; + alter table project_task drop column if exists int_priority; + drop table link_task_relation_table; + """ + ) + env.cr.commit() diff --git a/coopiteasy_custom/migrations/pre-migrate.py b/coopiteasy_custom/migrations/pre-migrate.py new file mode 100644 index 00000000..366156bc --- /dev/null +++ b/coopiteasy_custom/migrations/pre-migrate.py @@ -0,0 +1,38 @@ +# Copyright 2024 Coop IT Easy SC +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openupgradelib import openupgrade + +# field definition in v12 of coopiteasy_custom +# link_task_ids = fields.Many2many( +# comodel_name="project.task", +# relation="link_task_relation_table", +# column1="user1_id", +# column2="user2_id", +# string="Linked Tasks", + +# field definition in v16 of project +# depend_on_ids = fields.Many2many( +# "project.task", +# relation="task_dependencies_rel", +# column1="task_id", +# column2="depends_on_id", +# string="Blocked By", +# tracking=True, +# copy=False, +# domain="[('project_id', '!=', False), ('id', '!=', id)]", +# ) + + +@openupgrade.migrate() +def migrate(env, version): + # there are no hierarchy in linked task field, + # I assume col 1 (user1_id) (from here the linked task + # are added) is the blocked task + env.cr.execute( + """ + insert into task_dependencies_rel + select user1_id, user2_id from link_task_relation_table; + """ + ) + env.cr.commit() diff --git a/coopiteasy_custom/static/description/index.html b/coopiteasy_custom/static/description/index.html new file mode 100644 index 00000000..fadd83dd --- /dev/null +++ b/coopiteasy_custom/static/description/index.html @@ -0,0 +1,424 @@ + + + + + + +Coop IT Easy Customization + + + +
+

Coop IT Easy Customization

+ + +

Beta License: AGPL-3 coopiteasy/cie-custom

+

This module:

+
    +
  • adds reset_so_line on account.analytic.line
  • +
  • adds fields on project.task
  • +
  • only display active accounts on activity view
  • +
  • sorts accounts by line count
  • +
+

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

+
    +
  • Coop IT Easy SC
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the coopiteasy/cie-custom project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/setup/coopiteasy_custom/odoo/addons/coopiteasy_custom b/setup/coopiteasy_custom/odoo/addons/coopiteasy_custom new file mode 120000 index 00000000..7450ea3d --- /dev/null +++ b/setup/coopiteasy_custom/odoo/addons/coopiteasy_custom @@ -0,0 +1 @@ +../../../../coopiteasy_custom \ No newline at end of file diff --git a/setup/coopiteasy_custom/setup.py b/setup/coopiteasy_custom/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/coopiteasy_custom/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/setup/task_author_id/odoo/addons/task_author_id b/setup/task_author_id/odoo/addons/task_author_id new file mode 120000 index 00000000..40b353fa --- /dev/null +++ b/setup/task_author_id/odoo/addons/task_author_id @@ -0,0 +1 @@ +../../../../task_author_id \ No newline at end of file diff --git a/setup/task_author_id/setup.py b/setup/task_author_id/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/task_author_id/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/task_author_id/README.rst b/task_author_id/README.rst new file mode 100644 index 00000000..ad0a48d5 --- /dev/null +++ b/task_author_id/README.rst @@ -0,0 +1,67 @@ +========================== +Coop IT Easy Customization +========================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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-coopiteasy%2Fcie--custom-lightgray.png?logo=github + :target: https://github.com/coopiteasy/cie-custom/tree/12.0/coopiteasy_custom + :alt: coopiteasy/cie-custom + +|badge1| |badge2| |badge3| + +This module: + +* adds reset_so_line on account.analytic.line +* adds fields on project.task +* only allows to select open projects in timesheet line views +* only allows to select tasks of open projects in timesheet line views (when + directly selecting a task without selecting a project first) +* sorts projects by timesheet line count + +**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 +~~~~~~~ + +* Coop IT Easy SC + +Contributors +~~~~~~~~~~~~ + +* `Coop IT Easy SC `_: + + * Robin Keunen + * Carmen Bianca Bakker + +Maintainers +~~~~~~~~~~~ + +This module is part of the `coopiteasy/cie-custom `_ project on GitHub. + +You are welcome to contribute. diff --git a/task_author_id/__init__.py b/task_author_id/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/task_author_id/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/task_author_id/__manifest__.py b/task_author_id/__manifest__.py new file mode 100644 index 00000000..ecd8c9f3 --- /dev/null +++ b/task_author_id/__manifest__.py @@ -0,0 +1,23 @@ +# Copyright 2019 Coop IT Easy SCRL fs +# Robin Keunen +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + + +{ + "name": "Task Author", + "version": "16.0.1.0.0", + "author": "Coop IT Easy SC", + "license": "AGPL-3", + "category": "", + "website": "https://coopiteasy.be", + "summary": """ + Adds author_id field on project.task + """, + "depends": [ + "project", + ], + "data": [ + "views/project_view.xml", + ], + "installable": True, +} diff --git a/task_author_id/models/__init__.py b/task_author_id/models/__init__.py new file mode 100644 index 00000000..edf2d36b --- /dev/null +++ b/task_author_id/models/__init__.py @@ -0,0 +1 @@ +from . import project_task diff --git a/task_author_id/models/project_task.py b/task_author_id/models/project_task.py new file mode 100644 index 00000000..ca5fb342 --- /dev/null +++ b/task_author_id/models/project_task.py @@ -0,0 +1,12 @@ +# Copyright 2019 Coop IT Easy SCRL fs +# Robin Keunen +# Thibault François +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class ProjectTask(models.Model): + _inherit = "project.task" + + author_id = fields.Many2one("res.users", string="Author") diff --git a/task_author_id/readme/CONTRIBUTORS.rst b/task_author_id/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..631515b1 --- /dev/null +++ b/task_author_id/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* `Coop IT Easy SC `_: + + * Robin Keunen + * Carmen Bianca Bakker diff --git a/task_author_id/readme/DESCRIPTION.rst b/task_author_id/readme/DESCRIPTION.rst new file mode 100644 index 00000000..50c463d3 --- /dev/null +++ b/task_author_id/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Adds author_id field on project.task diff --git a/task_author_id/static/description/index.html b/task_author_id/static/description/index.html new file mode 100644 index 00000000..fadd83dd --- /dev/null +++ b/task_author_id/static/description/index.html @@ -0,0 +1,424 @@ + + + + + + +Coop IT Easy Customization + + + +
+

Coop IT Easy Customization

+ + +

Beta License: AGPL-3 coopiteasy/cie-custom

+

This module:

+
    +
  • adds reset_so_line on account.analytic.line
  • +
  • adds fields on project.task
  • +
  • only display active accounts on activity view
  • +
  • sorts accounts by line count
  • +
+

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

+
    +
  • Coop IT Easy SC
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is part of the coopiteasy/cie-custom project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/task_author_id/views/project_view.xml b/task_author_id/views/project_view.xml new file mode 100644 index 00000000..74a20471 --- /dev/null +++ b/task_author_id/views/project_view.xml @@ -0,0 +1,17 @@ + + + + + project.task.form.pr + project.task + + + + + + + +