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. 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..317847c --- /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": "16.0.1.0.0", + "category": "Human Resources", + "website": "https://github.com/coopiteasy/cie-timesheet", + "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/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" + 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} + + + + 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, +)