From 3992c6f6d9cdb0e8f3b5f721b37097da82f29cdf Mon Sep 17 00:00:00 2001 From: sergiocorato Date: Mon, 27 Nov 2023 08:55:17 +0100 Subject: [PATCH] [ADD] calendar view to timesheets --- account_analytic_line_calendar/README.rst | 60 +++ account_analytic_line_calendar/__init__.py | 0 .../__manifest__.py | 18 + account_analytic_line_calendar/i18n/it.po | 22 + .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 1 + .../static/description/icon.png | Bin 0 -> 4967 bytes .../static/description/index.html | 416 ++++++++++++++++++ .../views/hr_timesheet_view.xml | 22 + .../addons/account_analytic_line_calendar | 1 + setup/account_analytic_line_calendar/setup.py | 6 + 11 files changed, 547 insertions(+) create mode 100644 account_analytic_line_calendar/README.rst create mode 100644 account_analytic_line_calendar/__init__.py create mode 100644 account_analytic_line_calendar/__manifest__.py create mode 100644 account_analytic_line_calendar/i18n/it.po create mode 100644 account_analytic_line_calendar/readme/CONTRIBUTORS.rst create mode 100644 account_analytic_line_calendar/readme/DESCRIPTION.rst create mode 100644 account_analytic_line_calendar/static/description/icon.png create mode 100644 account_analytic_line_calendar/static/description/index.html create mode 100644 account_analytic_line_calendar/views/hr_timesheet_view.xml create mode 120000 setup/account_analytic_line_calendar/odoo/addons/account_analytic_line_calendar create mode 100644 setup/account_analytic_line_calendar/setup.py diff --git a/account_analytic_line_calendar/README.rst b/account_analytic_line_calendar/README.rst new file mode 100644 index 00000000..07d2f943 --- /dev/null +++ b/account_analytic_line_calendar/README.rst @@ -0,0 +1,60 @@ +================================== +Add calendar view to analytic line +================================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:f25c66e80fb18b0c643c798738635e2af6cf72e94dbd2613dffb54a7e5ccaa32 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-sergiocorato%2Fe--account-lightgray.png?logo=github + :target: https://github.com/sergiocorato/e-account/tree/14.0/account_analytic_line_calendar + :alt: sergiocorato/e-account + +|badge1| |badge2| |badge3| + +This module add a calendar view to 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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Sergio Corato + +Contributors +~~~~~~~~~~~~ + +* Sergio Corato + +Maintainers +~~~~~~~~~~~ + +This module is part of the `sergiocorato/e-account `_ project on GitHub. + +You are welcome to contribute. diff --git a/account_analytic_line_calendar/__init__.py b/account_analytic_line_calendar/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/account_analytic_line_calendar/__manifest__.py b/account_analytic_line_calendar/__manifest__.py new file mode 100644 index 00000000..726c1025 --- /dev/null +++ b/account_analytic_line_calendar/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright 2023 Sergio Corato +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Add calendar view to analytic line", + "version": "14.0.1.0.0", + "category": "Localisation", + "author": "Sergio Corato", + "website": "https://github.com/sergiocorato/e-account", + "license": "AGPL-3", + "depends": [ + "hr_timesheet", + "project_timesheet_time_control", + ], + "data": [ + "views/hr_timesheet_view.xml", + ], + "installable": True, +} diff --git a/account_analytic_line_calendar/i18n/it.po b/account_analytic_line_calendar/i18n/it.po new file mode 100644 index 00000000..a447c2ba --- /dev/null +++ b/account_analytic_line_calendar/i18n/it.po @@ -0,0 +1,22 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * account_invoice_tree_payment +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0+e\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-09-14 09:00+0000\n" +"PO-Revision-Date: 2023-09-14 09:00+0000\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" + +#. module: account_invoice_tree_payment +#: model_terms:ir.ui.view,arch_db:account_invoice_tree_payment.invoice_tree_payment +#: model_terms:ir.ui.view,arch_db:account_invoice_tree_payment.view_in_invoice_tree +msgid "Payment Term" +msgstr "Termine di pagamento" diff --git a/account_analytic_line_calendar/readme/CONTRIBUTORS.rst b/account_analytic_line_calendar/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..20edc24f --- /dev/null +++ b/account_analytic_line_calendar/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Sergio Corato diff --git a/account_analytic_line_calendar/readme/DESCRIPTION.rst b/account_analytic_line_calendar/readme/DESCRIPTION.rst new file mode 100644 index 00000000..a7f2f1ca --- /dev/null +++ b/account_analytic_line_calendar/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module add a calendar view to timesheets. diff --git a/account_analytic_line_calendar/static/description/icon.png b/account_analytic_line_calendar/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..ee8822054be660c6fa08515b6532e0f83d585f1b GIT binary patch literal 4967 zcmbVQ)C%7!ig03pSH2?V63(>#*6t}1U8aMy5%39uxT%eY1W0P<56d58{lem}z# zn$R=V?*H-M@Zh^_c(t#dj#CaNq&?b*tD3#Q)_7sww#z7$N@=a@Xd&o%}9#K zW_pUJ;0p%g(5^M7{|Wv+Q5d5^>d^K;VXCkCbp9dc_H)_W>zF$D7(i}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TERykUIj@ zT*TX|DEP>}?O-+KpRDj>^WkuI?I>XpvJ?&>2wr12<=DEYUz=r|(D)29{jB^iDLfQ4 z6zQR7Y;UH%f=LtY6pg}TY7R&=mFnit@&+iDXB;n5JO2vpSuPp;C$wyn6eiL*-$rVn z?Q*`AKz2^ITqZ(S<*uWsbso(oj%L7fmfS3PW}^F0_&iIL{JQ3Ij~xca4FVQ- zH`8YtpH(sxG=#P6U+ivu->va=lWMbb`Vi447l4PPJj!dyneDUloXZV)ncw&OQRc!~lckGkR8uQ#Huw|y5s|2AwTz5&K5n`>TGyZm4=W~MXYB&O{P2yR)0N(+P zIjYnT6~o;>9P^s+hTvZ84UkK~sR>*I_JBDElU3$QqJRJ;(TH@zirCKt&s5o;2bXme zdORtMT{J=R;X2lN!?3cY#%ODC`x|zzW@gMV8lD|g$7ru6)dS9VYLI;jMeeX&&ayNPk{82Sd}Fxnien{;Hb9eU>< z@WDP|8y5Y6A8=u>v*BthZg>;{kylGr%<}&xyK+@<49(wH&(_ zfnkrDSopkPik-9D((YsF1*g2f!c>}Is-1ujGPn)N|HnTY;<#JY#Awcu*mtyr;M>ym zyT*A{l5aefB$dow$q2*Z`%3e-3_(FdsFV3wt6jyFc!I2vRc-Mfu69h$le!yOX}KX> zG}zzCeWaexR8n)?jRygIv&wxWAkr1CAf-ern(&JI=t7C+3$-sF^>D<8{H zu59GB*U));A$`mcp9jKbRF8YGH{~LkW4-D%Bnx`Fw*|}&0&SJYS ze~a6Sp@d;86BX!7TDD%XNpG=rmyR#9np-J$*pIAYtLxyv3KhJa|IIi0f4?b4B;^4Y Ym(oXKl>T_<(GmlwD5%Sqzcvf}KVe06_W%F@ literal 0 HcmV?d00001 diff --git a/account_analytic_line_calendar/static/description/index.html b/account_analytic_line_calendar/static/description/index.html new file mode 100644 index 00000000..d57893d7 --- /dev/null +++ b/account_analytic_line_calendar/static/description/index.html @@ -0,0 +1,416 @@ + + + + + + +Add calendar view to analytic line + + + +
+

Add calendar view to analytic line

+ + +

Beta License: AGPL-3 sergiocorato/e-account

+

This module add a calendar view to timesheets.

+

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 to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Sergio Corato
  • +
+
+ +
+

Maintainers

+

This module is part of the sergiocorato/e-account project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/account_analytic_line_calendar/views/hr_timesheet_view.xml b/account_analytic_line_calendar/views/hr_timesheet_view.xml new file mode 100644 index 00000000..c20adb5d --- /dev/null +++ b/account_analytic_line_calendar/views/hr_timesheet_view.xml @@ -0,0 +1,22 @@ + + + + + tree,form,calendar,pivot,kanban + + + + Timesheet calendar + account.analytic.line + + + + + + + + + + + diff --git a/setup/account_analytic_line_calendar/odoo/addons/account_analytic_line_calendar b/setup/account_analytic_line_calendar/odoo/addons/account_analytic_line_calendar new file mode 120000 index 00000000..f33414a5 --- /dev/null +++ b/setup/account_analytic_line_calendar/odoo/addons/account_analytic_line_calendar @@ -0,0 +1 @@ +../../../../account_analytic_line_calendar \ No newline at end of file diff --git a/setup/account_analytic_line_calendar/setup.py b/setup/account_analytic_line_calendar/setup.py new file mode 100644 index 00000000..28c57bb6 --- /dev/null +++ b/setup/account_analytic_line_calendar/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)