From cd7c54514f671b5455a2d61a78644753c19209e9 Mon Sep 17 00:00:00 2001 From: Carmen Bianca Bakker Date: Tue, 23 Aug 2022 11:45:38 +0200 Subject: [PATCH 1/8] [ADD] hr_timesheet_project_prevent_creation Signed-off-by: Carmen Bianca Bakker --- .../__init__.py | 3 ++ .../__manifest__.py | 27 ++++++++++++++ .../readme/CONTRIBUTORS.rst | 3 ++ .../readme/DESCRIPTION.rst | 1 + .../views/hr_timesheet_sheet_views.xml | 35 +++++++++++++++++++ .../views/hr_timesheet_views.xml | 23 ++++++++++++ 6 files changed, 92 insertions(+) create mode 100644 hr_timesheet_project_prevent_creation/__init__.py create mode 100644 hr_timesheet_project_prevent_creation/__manifest__.py create mode 100644 hr_timesheet_project_prevent_creation/readme/CONTRIBUTORS.rst create mode 100644 hr_timesheet_project_prevent_creation/readme/DESCRIPTION.rst create mode 100644 hr_timesheet_project_prevent_creation/views/hr_timesheet_sheet_views.xml create mode 100644 hr_timesheet_project_prevent_creation/views/hr_timesheet_views.xml diff --git a/hr_timesheet_project_prevent_creation/__init__.py b/hr_timesheet_project_prevent_creation/__init__.py new file mode 100644 index 0000000..0870657 --- /dev/null +++ b/hr_timesheet_project_prevent_creation/__init__.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2022 Coop IT Easy SC +# +# SPDX-License-Identifier: AGPL-3.0-or-later diff --git a/hr_timesheet_project_prevent_creation/__manifest__.py b/hr_timesheet_project_prevent_creation/__manifest__.py new file mode 100644 index 0000000..9d8937c --- /dev/null +++ b/hr_timesheet_project_prevent_creation/__manifest__.py @@ -0,0 +1,27 @@ +# SPDX-FileCopyrightText: 2022 Coop IT Easy SC +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +{ + "name": "Prevent creation of projects and tasks from timesheets", + "summary": """ + Prevent creation of projects and tasks from timesheets.""", + "version": "12.0.1.0.0", + "category": "Human Resources", + "website": "https://coopiteasy.be", + "author": "Coop IT Easy SC", + "maintainers": ["carmenbianca"], + "license": "AGPL-3", + "application": False, + "depends": [ + "hr_timesheet", + "hr_timesheet_sheet", + ], + "excludes": [], + "data": [ + "views/hr_timesheet_sheet_views.xml", + "views/hr_timesheet_views.xml", + ], + "demo": [], + "qweb": [], +} diff --git a/hr_timesheet_project_prevent_creation/readme/CONTRIBUTORS.rst b/hr_timesheet_project_prevent_creation/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..d64451e --- /dev/null +++ b/hr_timesheet_project_prevent_creation/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `Coop IT Easy SC `_: + + * Carmen Bianca Bakker diff --git a/hr_timesheet_project_prevent_creation/readme/DESCRIPTION.rst b/hr_timesheet_project_prevent_creation/readme/DESCRIPTION.rst new file mode 100644 index 0000000..5cbc768 --- /dev/null +++ b/hr_timesheet_project_prevent_creation/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +Prevent creation of projects and tasks from timesheets. diff --git a/hr_timesheet_project_prevent_creation/views/hr_timesheet_sheet_views.xml b/hr_timesheet_project_prevent_creation/views/hr_timesheet_sheet_views.xml new file mode 100644 index 0000000..7a5b290 --- /dev/null +++ b/hr_timesheet_project_prevent_creation/views/hr_timesheet_sheet_views.xml @@ -0,0 +1,35 @@ + + + + + hr_timesheet.sheet.form.hr_timesheet_project_prevent_creation + hr_timesheet.sheet + + + + {'no_create': True} + + + {'no_create': True} + + + {'no_create': True} + + + {'no_create': True} + + + + diff --git a/hr_timesheet_project_prevent_creation/views/hr_timesheet_views.xml b/hr_timesheet_project_prevent_creation/views/hr_timesheet_views.xml new file mode 100644 index 0000000..b39dbc4 --- /dev/null +++ b/hr_timesheet_project_prevent_creation/views/hr_timesheet_views.xml @@ -0,0 +1,23 @@ + + + + + account.analytic.line.tree.hr_timesheet_project_prevent_creation + account.analytic.line + + + + {'no_create': True} + + + {'no_create': True} + + + + From de902497f9f361e0b8907bc0923ef75c452bb840 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 26 Aug 2022 08:36:56 +0000 Subject: [PATCH 2/8] [UPD] Update hr_timesheet_project_prevent_creation.pot --- .../i18n/hr_timesheet_project_prevent_creation.pot | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 hr_timesheet_project_prevent_creation/i18n/hr_timesheet_project_prevent_creation.pot diff --git a/hr_timesheet_project_prevent_creation/i18n/hr_timesheet_project_prevent_creation.pot b/hr_timesheet_project_prevent_creation/i18n/hr_timesheet_project_prevent_creation.pot new file mode 100644 index 0000000..d2e396f --- /dev/null +++ b/hr_timesheet_project_prevent_creation/i18n/hr_timesheet_project_prevent_creation.pot @@ -0,0 +1,14 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + From 48c1ff14beb2c281fd24064602dfaa11bda2357b Mon Sep 17 00:00:00 2001 From: Github GRAP Bot Date: Fri, 26 Aug 2022 08:41:58 +0000 Subject: [PATCH 3/8] [UPD] README.rst --- .../README.rst | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 hr_timesheet_project_prevent_creation/README.rst diff --git a/hr_timesheet_project_prevent_creation/README.rst b/hr_timesheet_project_prevent_creation/README.rst new file mode 100644 index 0000000..ddf9517 --- /dev/null +++ b/hr_timesheet_project_prevent_creation/README.rst @@ -0,0 +1,67 @@ +====================================================== +Prevent creation of projects and tasks from timesheets +====================================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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--timesheet-lightgray.png?logo=github + :target: https://github.com/coopiteasy/cie-timesheet/tree/12.0/hr_timesheet_project_prevent_creation + :alt: coopiteasy/cie-timesheet + +|badge1| |badge2| |badge3| + +Prevent creation of projects and tasks from timesheets. + +**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 `_: + + * Carmen Bianca Bakker + +Maintainers +~~~~~~~~~~~ + +.. |maintainer-carmenbianca| image:: https://github.com/carmenbianca.png?size=40px + :target: https://github.com/carmenbianca + :alt: carmenbianca + +Current maintainer: + +|maintainer-carmenbianca| + +This module is part of the `coopiteasy/cie-timesheet `_ project on GitHub. + +You are welcome to contribute. From 617677f2ba8e12fd9c23c980cd3e85d59bd007c2 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Thu, 27 Jul 2023 09:33:26 +0200 Subject: [PATCH 4/8] [IMP] hr_timesheet_project_prevent_creation: black, isort, prettier --- hr_timesheet_project_prevent_creation/__manifest__.py | 2 +- .../odoo/addons/hr_timesheet_project_prevent_creation | 1 + setup/hr_timesheet_project_prevent_creation/setup.py | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 120000 setup/hr_timesheet_project_prevent_creation/odoo/addons/hr_timesheet_project_prevent_creation create mode 100644 setup/hr_timesheet_project_prevent_creation/setup.py diff --git a/hr_timesheet_project_prevent_creation/__manifest__.py b/hr_timesheet_project_prevent_creation/__manifest__.py index 9d8937c..014eac6 100644 --- a/hr_timesheet_project_prevent_creation/__manifest__.py +++ b/hr_timesheet_project_prevent_creation/__manifest__.py @@ -8,7 +8,7 @@ Prevent creation of projects and tasks from timesheets.""", "version": "12.0.1.0.0", "category": "Human Resources", - "website": "https://coopiteasy.be", + "website": "https://github.com/coopiteasy/cie-timesheet", "author": "Coop IT Easy SC", "maintainers": ["carmenbianca"], "license": "AGPL-3", diff --git a/setup/hr_timesheet_project_prevent_creation/odoo/addons/hr_timesheet_project_prevent_creation b/setup/hr_timesheet_project_prevent_creation/odoo/addons/hr_timesheet_project_prevent_creation new file mode 120000 index 0000000..1991885 --- /dev/null +++ b/setup/hr_timesheet_project_prevent_creation/odoo/addons/hr_timesheet_project_prevent_creation @@ -0,0 +1 @@ +../../../../hr_timesheet_project_prevent_creation \ No newline at end of file diff --git a/setup/hr_timesheet_project_prevent_creation/setup.py b/setup/hr_timesheet_project_prevent_creation/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/hr_timesheet_project_prevent_creation/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From f32e0090f6a48353221dc2c10f692d6c7f4a896c Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Thu, 27 Jul 2023 09:42:35 +0200 Subject: [PATCH 5/8] [MIG] hr_timesheet_project_prevent_creation: Migration to 13.0 --- hr_timesheet_project_prevent_creation/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hr_timesheet_project_prevent_creation/__manifest__.py b/hr_timesheet_project_prevent_creation/__manifest__.py index 014eac6..2dfc3fa 100644 --- a/hr_timesheet_project_prevent_creation/__manifest__.py +++ b/hr_timesheet_project_prevent_creation/__manifest__.py @@ -6,7 +6,7 @@ "name": "Prevent creation of projects and tasks from timesheets", "summary": """ Prevent creation of projects and tasks from timesheets.""", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "Human Resources", "website": "https://github.com/coopiteasy/cie-timesheet", "author": "Coop IT Easy SC", From 95b78c4d2e9ea34c400acb57cf0ff3d97dbae043 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Thu, 27 Jul 2023 09:44:13 +0200 Subject: [PATCH 6/8] [MIG] hr_timesheet_project_prevent_creation: Migration to 14.0 --- hr_timesheet_project_prevent_creation/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hr_timesheet_project_prevent_creation/__manifest__.py b/hr_timesheet_project_prevent_creation/__manifest__.py index 2dfc3fa..b917198 100644 --- a/hr_timesheet_project_prevent_creation/__manifest__.py +++ b/hr_timesheet_project_prevent_creation/__manifest__.py @@ -6,7 +6,7 @@ "name": "Prevent creation of projects and tasks from timesheets", "summary": """ Prevent creation of projects and tasks from timesheets.""", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "category": "Human Resources", "website": "https://github.com/coopiteasy/cie-timesheet", "author": "Coop IT Easy SC", From 85c085fab276e230347b4c5bf2af26e37d7b5a07 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Thu, 27 Jul 2023 09:44:51 +0200 Subject: [PATCH 7/8] [MIG] hr_timesheet_project_prevent_creation: Migration to 15.0 --- hr_timesheet_project_prevent_creation/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hr_timesheet_project_prevent_creation/__manifest__.py b/hr_timesheet_project_prevent_creation/__manifest__.py index b917198..da83928 100644 --- a/hr_timesheet_project_prevent_creation/__manifest__.py +++ b/hr_timesheet_project_prevent_creation/__manifest__.py @@ -6,7 +6,7 @@ "name": "Prevent creation of projects and tasks from timesheets", "summary": """ Prevent creation of projects and tasks from timesheets.""", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "category": "Human Resources", "website": "https://github.com/coopiteasy/cie-timesheet", "author": "Coop IT Easy SC", From fe61ad27cb62ce1d77a644d4daee31dd1a5227da Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Thu, 27 Jul 2023 09:45:12 +0200 Subject: [PATCH 8/8] [MIG] hr_timesheet_project_prevent_creation: Migration to 16.0 --- hr_timesheet_project_prevent_creation/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hr_timesheet_project_prevent_creation/__manifest__.py b/hr_timesheet_project_prevent_creation/__manifest__.py index da83928..317847c 100644 --- a/hr_timesheet_project_prevent_creation/__manifest__.py +++ b/hr_timesheet_project_prevent_creation/__manifest__.py @@ -6,7 +6,7 @@ "name": "Prevent creation of projects and tasks from timesheets", "summary": """ Prevent creation of projects and tasks from timesheets.""", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "category": "Human Resources", "website": "https://github.com/coopiteasy/cie-timesheet", "author": "Coop IT Easy SC",