From fed078dec674cccaa5dd950f1a9e9b38a43238de Mon Sep 17 00:00:00 2001 From: Alexey Pelykh Date: Tue, 12 Feb 2019 14:50:42 +0200 Subject: [PATCH 01/50] [ADD] hr_timesheet_task_stage: control task stage from timesheet --- hr_timesheet_task_stage/README.rst | 85 ++++ hr_timesheet_task_stage/__init__.py | 3 + hr_timesheet_task_stage/__manifest__.py | 28 ++ .../i18n/hr_timesheet_task_stage.pot | 57 +++ hr_timesheet_task_stage/models/__init__.py | 3 + .../models/account_analytic_line.py | 61 +++ .../readme/CONTRIBUTORS.rst | 10 + .../readme/DESCRIPTION.rst | 3 + .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 435 ++++++++++++++++++ hr_timesheet_task_stage/tests/__init__.py | 3 + .../tests/test_hr_timesheet_task_stage.py | 52 +++ .../views/account_analytic_line.xml | 70 +++ 13 files changed, 810 insertions(+) create mode 100644 hr_timesheet_task_stage/README.rst create mode 100644 hr_timesheet_task_stage/__init__.py create mode 100644 hr_timesheet_task_stage/__manifest__.py create mode 100644 hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot create mode 100644 hr_timesheet_task_stage/models/__init__.py create mode 100644 hr_timesheet_task_stage/models/account_analytic_line.py create mode 100644 hr_timesheet_task_stage/readme/CONTRIBUTORS.rst create mode 100644 hr_timesheet_task_stage/readme/DESCRIPTION.rst create mode 100644 hr_timesheet_task_stage/static/description/icon.png create mode 100644 hr_timesheet_task_stage/static/description/index.html create mode 100644 hr_timesheet_task_stage/tests/__init__.py create mode 100644 hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py create mode 100644 hr_timesheet_task_stage/views/account_analytic_line.xml diff --git a/hr_timesheet_task_stage/README.rst b/hr_timesheet_task_stage/README.rst new file mode 100644 index 0000000000..6316cc8902 --- /dev/null +++ b/hr_timesheet_task_stage/README.rst @@ -0,0 +1,85 @@ +========================= +Task Log: Open/Close Task +========================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Ftimesheet-lightgray.png?logo=github + :target: https://github.com/OCA/timesheet/tree/12.0/hr_timesheet_task_stage + :alt: OCA/timesheet +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/timesheet-12-0/timesheet-12-0-hr_timesheet_task_stage + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/117/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to open and close tasks from account analytic lines. +The selected closed stage is the first one that is found with the mark +"Closed" checked. + +**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 +~~~~~~~ + +* Tecnativa +* Brainbean Apps + +Contributors +~~~~~~~~~~~~ + +* `Tecnativa `_: + + * Pedro M. Baeza + * Antonio Espinosa + * Carlos Dauden + * Sergio Teruel + * Luis M. ontalba + * Ernesto Tejeda + +* Alexey Pelykh + +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/timesheet `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_timesheet_task_stage/__init__.py b/hr_timesheet_task_stage/__init__.py new file mode 100644 index 0000000000..4b76c7b2d5 --- /dev/null +++ b/hr_timesheet_task_stage/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/hr_timesheet_task_stage/__manifest__.py b/hr_timesheet_task_stage/__manifest__.py new file mode 100644 index 0000000000..6db9a2fe0e --- /dev/null +++ b/hr_timesheet_task_stage/__manifest__.py @@ -0,0 +1,28 @@ +# Copyright 2016 Tecnativa - Antonio Espinosa +# Copyright 2016 Tecnativa - Sergio Teruel +# Copyright 2016-2018 Tecnativa - Pedro M. Baeza +# Copyright 2018 Tecnativa - Ernesto Tejeda +# Copyright 2019 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'Task Log: Open/Close Task', + 'version': '12.0.1.0.0', + 'category': 'Operations/Timesheets', + 'website': 'https://github.com/OCA/timesheet', + 'author': + 'Tecnativa, ' + 'Brainbean Apps, ' + 'Odoo Community Association (OCA)', + 'license': 'AGPL-3', + 'installable': True, + 'application': False, + 'summary': 'Open/Close task from corresponding Task Log entry', + 'depends': [ + 'hr_timesheet', + 'project_stage_closed', + ], + 'data': [ + 'views/account_analytic_line.xml', + ], +} diff --git a/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot b/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot new file mode 100644 index 0000000000..bad06984de --- /dev/null +++ b/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot @@ -0,0 +1,57 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_timesheet_task_stage +# +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" + +#. module: hr_timesheet_task_stage +#: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Close task" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Closed" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Open task" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Open/Close timesheet line automatically open/close its tasks. Do you want to proceed?" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Tasks in this stage are considered closed." +msgstr "" + +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:47 +#, python-format +msgid "There isn't any stage with \"Closed\" checked. Please mark any." +msgstr "" + +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:29 +#, python-format +msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." +msgstr "" + diff --git a/hr_timesheet_task_stage/models/__init__.py b/hr_timesheet_task_stage/models/__init__.py new file mode 100644 index 0000000000..9776396461 --- /dev/null +++ b/hr_timesheet_task_stage/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import account_analytic_line diff --git a/hr_timesheet_task_stage/models/account_analytic_line.py b/hr_timesheet_task_stage/models/account_analytic_line.py new file mode 100644 index 0000000000..1253e0e78d --- /dev/null +++ b/hr_timesheet_task_stage/models/account_analytic_line.py @@ -0,0 +1,61 @@ +# Copyright 2016 Tecnativa - Antonio Espinosa +# Copyright 2016 Tecnativa - Sergio Teruel +# Copyright 2016-2018 Tecnativa - Pedro M. Baeza +# Copyright 2019 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models, api, _ +from odoo.exceptions import UserError + + +class AccountAnalyticLine(models.Model): + _inherit = 'account.analytic.line' + + is_task_closed = fields.Boolean( + related='task_id.stage_id.closed', + ) + + @api.multi + def action_open_task(self): + ProjectTaskType = self.env['project.task.type'] + + for line in self.filtered('task_id.project_id'): + if line.task_id.project_id: + stage = ProjectTaskType.search([ + ('project_ids', '=', line.task_id.project_id.id), + ('closed', '=', False) + ], limit=1) + if not stage: # pragma: no cover + raise UserError(_( + 'There isn\'t any stage with "Closed" unchecked.' + ' Please unmark any.' + )) + line.task_id.write({ + 'stage_id': stage.id, + }) + + @api.multi + def action_close_task(self): + ProjectTaskType = self.env['project.task.type'] + + for line in self.filtered('task_id.project_id'): + stage = ProjectTaskType.search([ + ('project_ids', '=', line.task_id.project_id.id), + ('closed', '=', True) + ], limit=1) + if not stage: # pragma: no cover + raise UserError(_( + 'There isn\'t any stage with "Closed" checked. Please' + ' mark any.' + )) + line.task_id.write({ + 'stage_id': stage.id, + }) + + @api.multi + def action_toggle_task_stage(self): + for line in self.filtered('task_id.project_id'): + if line.is_task_closed: + line.action_open_task() + else: + line.action_close_task() diff --git a/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst b/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..38f0557603 --- /dev/null +++ b/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst @@ -0,0 +1,10 @@ +* `Tecnativa `_: + + * Pedro M. Baeza + * Antonio Espinosa + * Carlos Dauden + * Sergio Teruel + * Luis M. ontalba + * Ernesto Tejeda + +* Alexey Pelykh diff --git a/hr_timesheet_task_stage/readme/DESCRIPTION.rst b/hr_timesheet_task_stage/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..473352573f --- /dev/null +++ b/hr_timesheet_task_stage/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This module allows to open and close tasks from account analytic lines. +The selected closed stage is the first one that is found with the mark +"Closed" checked. diff --git a/hr_timesheet_task_stage/static/description/icon.png b/hr_timesheet_task_stage/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)( z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW z*bMSSOauW>o;*=kO8ojw91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be&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/hr_timesheet_task_stage/static/description/index.html b/hr_timesheet_task_stage/static/description/index.html new file mode 100644 index 0000000000..7dec5d7150 --- /dev/null +++ b/hr_timesheet_task_stage/static/description/index.html @@ -0,0 +1,435 @@ + + + + + + +Task Log: Open/Close Task + + + +
+

Task Log: Open/Close Task

+ + +

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

+

This module allows to open and close tasks from account analytic lines. +The selected closed stage is the first one that is found with the mark +“Closed” checked.

+

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

+
    +
  • Tecnativa
  • +
  • Brainbean Apps
  • +
+
+
+

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/timesheet project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/hr_timesheet_task_stage/tests/__init__.py b/hr_timesheet_task_stage/tests/__init__.py new file mode 100644 index 0000000000..9888135eb6 --- /dev/null +++ b/hr_timesheet_task_stage/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from . import test_hr_timesheet_task_stage diff --git a/hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py b/hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py new file mode 100644 index 0000000000..22d502b06b --- /dev/null +++ b/hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py @@ -0,0 +1,52 @@ +# Copyright 2016-2018 Tecnativa - Pedro M. Baeza +# Copyright 2019 Brainbean Apps (https://brainbeanapps.com) +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +from datetime import timedelta, datetime + +from odoo.tests import common + + +class TestHrTimesheetTaskStage(common.TransactionCase): + + def setUp(self): + super().setUp() + + self.project = self.env['project.project'].create( + {'name': 'Test project'}) + self.analytic_account = self.project.analytic_account_id + self.task = self.env['project.task'].create({ + 'name': 'Test task', + 'project_id': self.project.id, + }) + task_type_obj = self.env['project.task.type'] + self.stage_open = task_type_obj.create({ + 'name': 'New', + 'closed': False, + 'project_ids': [(6, 0, self.project.ids)], + }) + self.stage_close = task_type_obj.create({ + 'name': 'Done', + 'closed': True, + 'project_ids': [(6, 0, self.project.ids)], + }) + self.line = self.env['account.analytic.line'].create({ + 'date_time': datetime.now() - timedelta(hours=1), + 'task_id': self.task.id, + 'account_id': self.analytic_account.id, + 'name': 'Test line', + }) + + def test_open_close_task(self): + self.line.action_close_task() + self.assertEqual(self.line.task_id.stage_id, self.stage_close) + self.line.action_open_task() + self.assertEqual(self.line.task_id.stage_id, self.stage_open) + + def test_toggle_task_stage(self): + self.line.action_toggle_task_stage() + self.assertTrue(self.line.task_id.stage_id.closed) + self.assertTrue(self.line.is_task_closed) + self.line.action_toggle_task_stage() + self.assertFalse(self.line.task_id.stage_id.closed) + self.assertFalse(self.line.is_task_closed) diff --git a/hr_timesheet_task_stage/views/account_analytic_line.xml b/hr_timesheet_task_stage/views/account_analytic_line.xml new file mode 100644 index 0000000000..1f0d4f8a58 --- /dev/null +++ b/hr_timesheet_task_stage/views/account_analytic_line.xml @@ -0,0 +1,70 @@ + + + + + + account.analytic.line.tree + account.analytic.line + + + + + + +
+
+ +
+
+ +
From 4bb1522e81b4210ac00415d1021b6a18b8087122 Mon Sep 17 00:00:00 2001 From: Maria Sparenberg Date: Wed, 10 Jul 2019 05:39:15 +0000 Subject: [PATCH 02/50] Added translation using Weblate (German) --- hr_timesheet_task_stage/i18n/de.po | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 hr_timesheet_task_stage/i18n/de.po diff --git a/hr_timesheet_task_stage/i18n/de.po b/hr_timesheet_task_stage/i18n/de.po new file mode 100644 index 0000000000..69e1cf5008 --- /dev/null +++ b/hr_timesheet_task_stage/i18n/de.po @@ -0,0 +1,57 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_timesheet_task_stage +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: hr_timesheet_task_stage +#: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Close task" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Closed" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Open task" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Open/Close timesheet line automatically open/close its tasks. Do you want to proceed?" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Tasks in this stage are considered closed." +msgstr "" + +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:47 +#, python-format +msgid "There isn't any stage with \"Closed\" checked. Please mark any." +msgstr "" + +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:29 +#, python-format +msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." +msgstr "" From 1d5d843ab654e293ce32aa6077d63adcf24d268b Mon Sep 17 00:00:00 2001 From: Maria Sparenberg Date: Thu, 11 Jul 2019 10:03:20 +0000 Subject: [PATCH 03/50] Translated using Weblate (German) Currently translated at 100.0% (8 of 8 strings) Translation: timesheet-12.0/timesheet-12.0-hr_timesheet_task_stage Translate-URL: https://translation.odoo-community.org/projects/timesheet-12-0/timesheet-12-0-hr_timesheet_task_stage/de/ --- hr_timesheet_task_stage/i18n/de.po | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/hr_timesheet_task_stage/i18n/de.po b/hr_timesheet_task_stage/i18n/de.po index 69e1cf5008..dd78cb60d3 100644 --- a/hr_timesheet_task_stage/i18n/de.po +++ b/hr_timesheet_task_stage/i18n/de.po @@ -6,52 +6,60 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2019-07-12 13:43+0000\n" +"Last-Translator: Maria Sparenberg \n" "Language-Team: none\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.7.1\n" #. module: hr_timesheet_task_stage #: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line msgid "Analytic Line" -msgstr "" +msgstr "Kostenstellenbuchung" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree msgid "Close task" -msgstr "" +msgstr "Aufgabe beenden" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed msgid "Closed" -msgstr "" +msgstr "Geschlossen" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree msgid "Open task" -msgstr "" +msgstr "Aufgabe öffnen" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form msgid "Open/Close timesheet line automatically open/close its tasks. Do you want to proceed?" msgstr "" +"Das Öffnen / Schließen von diesem Zeiteintrag aus wird die zugehörige " +"Aufgabe öffnen / schließen. Wollen Sie fortfahren?" #. module: hr_timesheet_task_stage #: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed msgid "Tasks in this stage are considered closed." -msgstr "" +msgstr "Aufgaben in dieser Stufe werden als geschlossen interpretiert." #. module: hr_timesheet_task_stage #: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:47 #, python-format msgid "There isn't any stage with \"Closed\" checked. Please mark any." msgstr "" +"Es gibt keine Stufe, die als \"Geschlossen\" interpretiert wird. Bitte bei " +"einer Stufe das Merkmal setzen." #. module: hr_timesheet_task_stage #: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:29 #, python-format msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." msgstr "" +"Es gibt keine Stufe, die nicht als \"Geschlossen\" interpretiert wird. Bitte " +"bei einer Stufe das Merkmal entfernen." From dfb91d13d597b28a34f05aaf532f00ea056c5ea4 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 2 Oct 2019 10:51:10 +0100 Subject: [PATCH 04/50] [FIX] hr_timesheet_task_stage: Disable automatic hotkeys Without this attribute, Odoo will try to assign a hotkey to buttons. It's very unlikely that these buttons have to be used like this, and since there's a limited number of available hotkeys, they steal them to more important ones like the wizard proposed at https://github.com/OCA/project/pull/586. --- hr_timesheet_task_stage/__manifest__.py | 2 +- hr_timesheet_task_stage/views/account_analytic_line.xml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hr_timesheet_task_stage/__manifest__.py b/hr_timesheet_task_stage/__manifest__.py index 6db9a2fe0e..d28d530852 100644 --- a/hr_timesheet_task_stage/__manifest__.py +++ b/hr_timesheet_task_stage/__manifest__.py @@ -7,7 +7,7 @@ { 'name': 'Task Log: Open/Close Task', - 'version': '12.0.1.0.0', + 'version': '12.0.1.1.0', 'category': 'Operations/Timesheets', 'website': 'https://github.com/OCA/timesheet', 'author': diff --git a/hr_timesheet_task_stage/views/account_analytic_line.xml b/hr_timesheet_task_stage/views/account_analytic_line.xml index 1f0d4f8a58..b1930b63b4 100644 --- a/hr_timesheet_task_stage/views/account_analytic_line.xml +++ b/hr_timesheet_task_stage/views/account_analytic_line.xml @@ -15,6 +15,7 @@ +
From 633b63ac16c3e87f33ae9af27c950e3dbbf71226 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Fri, 3 Jul 2020 17:27:25 +0000 Subject: [PATCH 07/50] [UPD] Update hr_timesheet_task_stage.pot --- .../i18n/hr_timesheet_task_stage.pot | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot b/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot index bad06984de..64c57b9496 100644 --- a/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot +++ b/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot @@ -1,18 +1,28 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * hr_timesheet_task_stage +# * hr_timesheet_task_stage # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\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: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Closed" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Open" +msgstr "" + #. module: hr_timesheet_task_stage #: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line msgid "Analytic Line" @@ -33,25 +43,19 @@ msgstr "" msgid "Open task" msgstr "" -#. module: hr_timesheet_task_stage -#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form -msgid "Open/Close timesheet line automatically open/close its tasks. Do you want to proceed?" -msgstr "" - #. module: hr_timesheet_task_stage #: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed msgid "Tasks in this stage are considered closed." msgstr "" #. module: hr_timesheet_task_stage -#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:47 +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 #, python-format msgid "There isn't any stage with \"Closed\" checked. Please mark any." msgstr "" #. module: hr_timesheet_task_stage -#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:29 +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 #, python-format msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." msgstr "" - From a5b66ebf96902f2dee7ed1621f9505e9e47d1367 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 3 Jul 2020 17:44:11 +0000 Subject: [PATCH 08/50] [UPD] README.rst --- hr_timesheet_task_stage/README.rst | 13 +++++++------ .../static/description/index.html | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/hr_timesheet_task_stage/README.rst b/hr_timesheet_task_stage/README.rst index 6316cc8902..6ec32cb6c5 100644 --- a/hr_timesheet_task_stage/README.rst +++ b/hr_timesheet_task_stage/README.rst @@ -14,13 +14,13 @@ Task Log: Open/Close Task :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ftimesheet-lightgray.png?logo=github - :target: https://github.com/OCA/timesheet/tree/12.0/hr_timesheet_task_stage + :target: https://github.com/OCA/timesheet/tree/13.0/hr_timesheet_task_stage :alt: OCA/timesheet .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/timesheet-12-0/timesheet-12-0-hr_timesheet_task_stage + :target: https://translation.odoo-community.org/projects/timesheet-13-0/timesheet-13-0-hr_timesheet_task_stage :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/117/12.0 + :target: https://runbot.odoo-community.org/runbot/117/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -40,7 +40,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -64,7 +64,8 @@ Contributors * Sergio Teruel * Luis M. ontalba * Ernesto Tejeda - + * Manuel Calero + * Alexey Pelykh Maintainers @@ -80,6 +81,6 @@ 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/timesheet `_ project on GitHub. +This module is part of the `OCA/timesheet `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_timesheet_task_stage/static/description/index.html b/hr_timesheet_task_stage/static/description/index.html index 821446431b..f58c740fa8 100644 --- a/hr_timesheet_task_stage/static/description/index.html +++ b/hr_timesheet_task_stage/static/description/index.html @@ -367,7 +367,7 @@

Task Log: Open/Close Task

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module allows to open and close tasks from account analytic lines. The selected closed stage is the first one that is found with the mark “Closed” checked.

From 080db05cafb82674fc1171cdc4b2c95b6e0726f7 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Mon, 27 Jul 2020 12:59:47 +0000 Subject: [PATCH 09/50] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: timesheet-13.0/timesheet-13.0-hr_timesheet_task_stage Translate-URL: https://translation.odoo-community.org/projects/timesheet-13-0/timesheet-13-0-hr_timesheet_task_stage/ --- hr_timesheet_task_stage/i18n/de.po | 30 ++-- hr_timesheet_task_stage/i18n/es.po | 227 ++++++++++++++--------------- 2 files changed, 130 insertions(+), 127 deletions(-) diff --git a/hr_timesheet_task_stage/i18n/de.po b/hr_timesheet_task_stage/i18n/de.po index dd78cb60d3..5ae1d218c1 100644 --- a/hr_timesheet_task_stage/i18n/de.po +++ b/hr_timesheet_task_stage/i18n/de.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * hr_timesheet_task_stage +# * hr_timesheet_task_stage # msgid "" msgstr "" @@ -16,6 +16,16 @@ msgstr "" "Plural-Forms: nplurals=2; plural=n != 1;\n" "X-Generator: Weblate 3.7.1\n" +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Closed" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Open" +msgstr "" + #. module: hr_timesheet_task_stage #: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line msgid "Analytic Line" @@ -36,20 +46,13 @@ msgstr "Geschlossen" msgid "Open task" msgstr "Aufgabe öffnen" -#. module: hr_timesheet_task_stage -#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form -msgid "Open/Close timesheet line automatically open/close its tasks. Do you want to proceed?" -msgstr "" -"Das Öffnen / Schließen von diesem Zeiteintrag aus wird die zugehörige " -"Aufgabe öffnen / schließen. Wollen Sie fortfahren?" - #. module: hr_timesheet_task_stage #: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed msgid "Tasks in this stage are considered closed." msgstr "Aufgaben in dieser Stufe werden als geschlossen interpretiert." #. module: hr_timesheet_task_stage -#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:47 +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 #, python-format msgid "There isn't any stage with \"Closed\" checked. Please mark any." msgstr "" @@ -57,9 +60,16 @@ msgstr "" "einer Stufe das Merkmal setzen." #. module: hr_timesheet_task_stage -#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:29 +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 #, python-format msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." msgstr "" "Es gibt keine Stufe, die nicht als \"Geschlossen\" interpretiert wird. Bitte " "bei einer Stufe das Merkmal entfernen." + +#~ msgid "" +#~ "Open/Close timesheet line automatically open/close its tasks. Do you want " +#~ "to proceed?" +#~ msgstr "" +#~ "Das Öffnen / Schließen von diesem Zeiteintrag aus wird die zugehörige " +#~ "Aufgabe öffnen / schließen. Wollen Sie fortfahren?" diff --git a/hr_timesheet_task_stage/i18n/es.po b/hr_timesheet_task_stage/i18n/es.po index 2680a50520..b5985f219b 100644 --- a/hr_timesheet_task_stage/i18n/es.po +++ b/hr_timesheet_task_stage/i18n/es.po @@ -10,140 +10,133 @@ msgstr "" "PO-Revision-Date: 2020-02-11 10:07+0100\n" "Last-Translator: Manuel Calero\n" "Language-Team: \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: \n" -"Language: es\n" "X-Generator: Poedit 2.2.4\n" -#. module: project_timesheet_holidays -#: model:ir.model,name:project_timesheet_holidays.model_account_analytic_line +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Closed" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Open" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line msgid "Analytic Line" msgstr "Línea Analítica" -#. module: project_timesheet_holidays -#: model:ir.model.fields,field_description:project_timesheet_holidays.field_hr_leave__timesheet_ids -msgid "Analytic Lines" -msgstr "Líneas analíticas" - -#. module: project_timesheet_holidays -#: code:addons/project_timesheet_holidays/models/hr_holidays.py:0 -#, python-format -msgid "" -"Both the internal project and task are required to generate a timesheet for " -"the time off. If you don't want a timesheet, you should leave the internal " -"project and task empty." +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Close task" msgstr "" -"Se requieren tanto el proyecto interno como la tarea para generar un parte " -"de horas para el tiempo libre. Si no desea un parte de horas, debe dejar " -"el proyecto interno y la tarea vacía." - -#. module: project_timesheet_holidays -#: model:ir.model,name:project_timesheet_holidays.model_res_company -msgid "Companies" -msgstr "Compañías" - -#. module: project_timesheet_holidays -#: model:ir.model,name:project_timesheet_holidays.model_res_config_settings -msgid "Config Settings" -msgstr "Opciones de Configuración" - -#. module: project_timesheet_holidays -#: model:ir.model.fields,help:project_timesheet_holidays.field_res_company__leave_timesheet_project_id -#: model:ir.model.fields,help:project_timesheet_holidays.field_res_config_settings__leave_timesheet_project_id -msgid "Default project value for timesheet generated from time off type." + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Closed" msgstr "" -"Valor predeterminado del proyecto para el parte de horas generada a partir " -"del tiempo libre." -#. module: project_timesheet_holidays -#: model:ir.model.fields,field_description:project_timesheet_holidays.field_hr_leave_type__timesheet_generate -msgid "Generate Timesheet" -msgstr "Generar parte de horas" +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Open task" +msgstr "" -#. module: project_timesheet_holidays -#: model:ir.model.fields,help:project_timesheet_holidays.field_hr_leave_type__timesheet_generate -msgid "" -"If checked, when validating a time off, timesheet will be generated in the " -"Vacation Project of the company." +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Tasks in this stage are considered closed." msgstr "" -"Si se marca, al validar un tiempo libre, se generará una hoja de tiempo en " -"el proyecto de vacaciones de la empresa." -#. module: project_timesheet_holidays -#: code:addons/project_timesheet_holidays/models/res_company.py:0 -#: model:ir.model.fields,field_description:project_timesheet_holidays.field_res_company__leave_timesheet_project_id -#: model:ir.model.fields,field_description:project_timesheet_holidays.field_res_config_settings__leave_timesheet_project_id +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 #, python-format -msgid "Internal Project" -msgstr "Proyecto interno" - -#. module: project_timesheet_holidays -#: model:ir.model.fields,field_description:project_timesheet_holidays.field_account_analytic_line__holiday_id -msgid "Leave Request" -msgstr "Petición de ausencia" - -#. module: project_timesheet_holidays -#: model:ir.model.fields,field_description:project_timesheet_holidays.field_hr_leave_type__timesheet_project_id -#: model_terms:ir.ui.view,arch_db:project_timesheet_holidays.res_config_settings_view_form -msgid "Project" -msgstr "Proyecto" - -#. module: project_timesheet_holidays -#: model_terms:ir.ui.view,arch_db:project_timesheet_holidays.res_config_settings_view_form -msgid "Task" -msgstr "Tarea" - -#. module: project_timesheet_holidays -#: model:ir.model.fields,field_description:project_timesheet_holidays.field_hr_leave_type__timesheet_task_id -msgid "Task for timesheet" -msgstr "Tarea para parte de horas" - -#. module: project_timesheet_holidays -#: code:addons/project_timesheet_holidays/models/res_company.py:0 -#, python-format -msgid "The Internal Project of a company should be in that company." -msgstr "El proyecto interno de una empresa debe pertenecer a esa empresa." - -#. module: project_timesheet_holidays -#: model:ir.model.fields,help:project_timesheet_holidays.field_hr_leave_type__timesheet_project_id -msgid "" -"The project will contain the timesheet generated when a time off is " -"validated." +msgid "There isn't any stage with \"Closed\" checked. Please mark any." msgstr "" -"El proyecto contendrá el parte de horas generado cuando se valida un tiempo " -"libre." -#. module: project_timesheet_holidays -#: code:addons/project_timesheet_holidays/models/res_company.py:0 -#: model:ir.model,name:project_timesheet_holidays.model_hr_leave -#, python-format -msgid "Time Off" -msgstr "Ausencias" - -#. module: project_timesheet_holidays -#: model:ir.model.fields,field_description:project_timesheet_holidays.field_res_company__leave_timesheet_task_id -#: model:ir.model.fields,field_description:project_timesheet_holidays.field_res_config_settings__leave_timesheet_task_id -msgid "Time Off Task" -msgstr "Tarea de tiempo libre" - -#. module: project_timesheet_holidays -#: model:ir.model,name:project_timesheet_holidays.model_hr_leave_type -msgid "Time Off Type" -msgstr "Tipo de tiempo libre" - -#. module: project_timesheet_holidays -#: model_terms:ir.ui.view,arch_db:project_timesheet_holidays.hr_holiday_status_view_form_inherit -msgid "Timesheet" -msgstr "Parte de horas" - -#. module: project_timesheet_holidays -#: code:addons/project_timesheet_holidays/models/account_analytic.py:0 +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 #, python-format -msgid "" -"You cannot delete timesheet lines attached to a leaves. Please cancel the " -"leaves instead." +msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." msgstr "" -"No puede eliminar líneas de los partes de horas adjuntos a los permisos. " -"Cancele los permisos en su lugar." + +#~ msgid "Analytic Lines" +#~ msgstr "Líneas analíticas" + +#~ msgid "" +#~ "Both the internal project and task are required to generate a timesheet " +#~ "for the time off. If you don't want a timesheet, you should leave the " +#~ "internal project and task empty." +#~ msgstr "" +#~ "Se requieren tanto el proyecto interno como la tarea para generar un " +#~ "parte de horas para el tiempo libre. Si no desea un parte de horas, debe " +#~ "dejar el proyecto interno y la tarea vacía." + +#~ msgid "Companies" +#~ msgstr "Compañías" + +#~ msgid "Config Settings" +#~ msgstr "Opciones de Configuración" + +#~ msgid "Default project value for timesheet generated from time off type." +#~ msgstr "" +#~ "Valor predeterminado del proyecto para el parte de horas generada a " +#~ "partir del tiempo libre." + +#~ msgid "Generate Timesheet" +#~ msgstr "Generar parte de horas" + +#~ msgid "" +#~ "If checked, when validating a time off, timesheet will be generated in " +#~ "the Vacation Project of the company." +#~ msgstr "" +#~ "Si se marca, al validar un tiempo libre, se generará una hoja de tiempo " +#~ "en el proyecto de vacaciones de la empresa." + +#~ msgid "Internal Project" +#~ msgstr "Proyecto interno" + +#~ msgid "Leave Request" +#~ msgstr "Petición de ausencia" + +#~ msgid "Project" +#~ msgstr "Proyecto" + +#~ msgid "Task" +#~ msgstr "Tarea" + +#~ msgid "Task for timesheet" +#~ msgstr "Tarea para parte de horas" + +#~ msgid "The Internal Project of a company should be in that company." +#~ msgstr "El proyecto interno de una empresa debe pertenecer a esa empresa." + +#~ msgid "" +#~ "The project will contain the timesheet generated when a time off is " +#~ "validated." +#~ msgstr "" +#~ "El proyecto contendrá el parte de horas generado cuando se valida un " +#~ "tiempo libre." + +#~ msgid "Time Off" +#~ msgstr "Ausencias" + +#~ msgid "Time Off Task" +#~ msgstr "Tarea de tiempo libre" + +#~ msgid "Time Off Type" +#~ msgstr "Tipo de tiempo libre" + +#~ msgid "Timesheet" +#~ msgstr "Parte de horas" + +#~ msgid "" +#~ "You cannot delete timesheet lines attached to a leaves. Please cancel the " +#~ "leaves instead." +#~ msgstr "" +#~ "No puede eliminar líneas de los partes de horas adjuntos a los permisos. " +#~ "Cancele los permisos en su lugar." From 4691122912db243e25f0ddfe966359abebd43495 Mon Sep 17 00:00:00 2001 From: Alexey Pelykh Date: Sun, 8 Nov 2020 08:11:32 +0200 Subject: [PATCH 10/50] [UPD] Brainbean Apps => CorporateHub --- hr_timesheet_task_stage/README.rst | 7 +++++-- hr_timesheet_task_stage/__manifest__.py | 3 ++- hr_timesheet_task_stage/readme/CONTRIBUTORS.rst | 4 +++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/hr_timesheet_task_stage/README.rst b/hr_timesheet_task_stage/README.rst index 6ec32cb6c5..f72f807c25 100644 --- a/hr_timesheet_task_stage/README.rst +++ b/hr_timesheet_task_stage/README.rst @@ -51,7 +51,7 @@ Authors ~~~~~~~ * Tecnativa -* Brainbean Apps +* CorporateHub Contributors ~~~~~~~~~~~~ @@ -66,7 +66,10 @@ Contributors * Ernesto Tejeda * Manuel Calero -* Alexey Pelykh +* `CorporateHub `__ + + * Alexey Pelykh + Maintainers ~~~~~~~~~~~ diff --git a/hr_timesheet_task_stage/__manifest__.py b/hr_timesheet_task_stage/__manifest__.py index ad25a4b5d0..a59976210b 100644 --- a/hr_timesheet_task_stage/__manifest__.py +++ b/hr_timesheet_task_stage/__manifest__.py @@ -3,6 +3,7 @@ # Copyright 2016-2018 Tecnativa - Pedro M. Baeza # Copyright 2018 Tecnativa - Ernesto Tejeda # Copyright 2019 Brainbean Apps (https://brainbeanapps.com) +# Copyright 2020 CorporateHub (https://corporatehub.eu) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { @@ -10,7 +11,7 @@ "version": "13.0.1.1.0", "category": "Operations/Timesheets", "website": "https://github.com/OCA/timesheet", - "author": "Tecnativa, " "Brainbean Apps, " "Odoo Community Association (OCA)", + "author": "Tecnativa, " "CorporateHub, " "Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, "application": False, diff --git a/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst b/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst index dc012e0fa3..d392951999 100644 --- a/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst +++ b/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst @@ -8,4 +8,6 @@ * Ernesto Tejeda * Manuel Calero -* Alexey Pelykh +* `CorporateHub `__ + + * Alexey Pelykh From 830532df10f4138502be85e98ec6d3248b67cd64 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 8 Nov 2020 07:12:21 +0000 Subject: [PATCH 11/50] [UPD] README.rst --- hr_timesheet_task_stage/README.rst | 1 - hr_timesheet_task_stage/static/description/index.html | 7 +++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/hr_timesheet_task_stage/README.rst b/hr_timesheet_task_stage/README.rst index f72f807c25..324e5419fc 100644 --- a/hr_timesheet_task_stage/README.rst +++ b/hr_timesheet_task_stage/README.rst @@ -70,7 +70,6 @@ Contributors * Alexey Pelykh - Maintainers ~~~~~~~~~~~ diff --git a/hr_timesheet_task_stage/static/description/index.html b/hr_timesheet_task_stage/static/description/index.html index f58c740fa8..d8de5b8674 100644 --- a/hr_timesheet_task_stage/static/description/index.html +++ b/hr_timesheet_task_stage/static/description/index.html @@ -397,7 +397,7 @@

Credits

Authors

  • Tecnativa
  • -
  • Brainbean Apps
  • +
  • CorporateHub
@@ -416,7 +416,10 @@

Contributors

-
  • Alexey Pelykh <alexey.pelykh@brainbeanapps.com>

    +
  • CorporateHub

    +
  • From 1026d508dfcbc92622ca427f10167e2976b440ac Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Mon, 9 Nov 2020 12:50:07 +0000 Subject: [PATCH 12/50] Added translation using Weblate (Hebrew) --- hr_timesheet_task_stage/i18n/he_IL.po | 63 +++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 hr_timesheet_task_stage/i18n/he_IL.po diff --git a/hr_timesheet_task_stage/i18n/he_IL.po b/hr_timesheet_task_stage/i18n/he_IL.po new file mode 100644 index 0000000000..1cab01682e --- /dev/null +++ b/hr_timesheet_task_stage/i18n/he_IL.po @@ -0,0 +1,63 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_timesheet_task_stage +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: he_IL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n == 1) ? 0 : ((n == 2) ? 1 : ((n > 10 && " +"n % 10 == 0) ? 2 : 3));\n" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Closed" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Open" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Close task" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Closed" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Open task" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Tasks in this stage are considered closed." +msgstr "" + +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 +#, python-format +msgid "There isn't any stage with \"Closed\" checked. Please mark any." +msgstr "" + +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 +#, python-format +msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." +msgstr "" From 585e80ef58a2f2de6325722b07c5c2dea6b03944 Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Mon, 9 Nov 2020 12:51:26 +0000 Subject: [PATCH 13/50] Translated using Weblate (Hebrew) Currently translated at 77.8% (7 of 9 strings) Translation: timesheet-13.0/timesheet-13.0-hr_timesheet_task_stage Translate-URL: https://translation.odoo-community.org/projects/timesheet-13-0/timesheet-13-0-hr_timesheet_task_stage/he_IL/ --- hr_timesheet_task_stage/i18n/he_IL.po | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/hr_timesheet_task_stage/i18n/he_IL.po b/hr_timesheet_task_stage/i18n/he_IL.po index 1cab01682e..d43b8c3151 100644 --- a/hr_timesheet_task_stage/i18n/he_IL.po +++ b/hr_timesheet_task_stage/i18n/he_IL.po @@ -6,7 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2020-11-09 15:08+0000\n" +"Last-Translator: Yves Goldberg \n" "Language-Team: none\n" "Language: he_IL\n" "MIME-Version: 1.0\n" @@ -14,41 +15,42 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=4; plural=(n == 1) ? 0 : ((n == 2) ? 1 : ((n > 10 && " "n % 10 == 0) ? 2 : 3));\n" +"X-Generator: Weblate 3.10\n" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form msgid "Closed" -msgstr "" +msgstr "סגור " #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form msgid "Open" -msgstr "" +msgstr "פתוח " #. module: hr_timesheet_task_stage #: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line msgid "Analytic Line" -msgstr "" +msgstr "שורה אנליטית" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree msgid "Close task" -msgstr "" +msgstr "משימה סגורה" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed msgid "Closed" -msgstr "" +msgstr "סגור" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree msgid "Open task" -msgstr "" +msgstr "משימה פתוחה" #. module: hr_timesheet_task_stage #: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed msgid "Tasks in this stage are considered closed." -msgstr "" +msgstr "המשימות בשלב זה נחשבים לסגורים." #. module: hr_timesheet_task_stage #: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 From c023a0c5ff1ea0b2192ab00419a0624406d6d226 Mon Sep 17 00:00:00 2001 From: dsolanki Date: Mon, 3 May 2021 13:56:03 +0530 Subject: [PATCH 14/50] [MIG] Migrate module hr_timesheet_task_stage to v14. --- hr_timesheet_task_stage/README.rst | 2 ++ hr_timesheet_task_stage/__manifest__.py | 6 +++--- .../models/account_analytic_line.py | 6 +++--- hr_timesheet_task_stage/readme/CONTRIBUTORS.rst | 2 ++ .../tests/test_hr_timesheet_task_stage.py | 16 ++++++++++++---- 5 files changed, 22 insertions(+), 10 deletions(-) diff --git a/hr_timesheet_task_stage/README.rst b/hr_timesheet_task_stage/README.rst index 324e5419fc..aeaa860755 100644 --- a/hr_timesheet_task_stage/README.rst +++ b/hr_timesheet_task_stage/README.rst @@ -70,6 +70,8 @@ Contributors * Alexey Pelykh +* Dhara Solanki + Maintainers ~~~~~~~~~~~ diff --git a/hr_timesheet_task_stage/__manifest__.py b/hr_timesheet_task_stage/__manifest__.py index a59976210b..e8a00b342b 100644 --- a/hr_timesheet_task_stage/__manifest__.py +++ b/hr_timesheet_task_stage/__manifest__.py @@ -8,14 +8,14 @@ { "name": "Task Log: Open/Close Task", - "version": "13.0.1.1.0", + "version": "14.0.1.0.0", "category": "Operations/Timesheets", "website": "https://github.com/OCA/timesheet", - "author": "Tecnativa, " "CorporateHub, " "Odoo Community Association (OCA)", + "author": "Tecnativa, CorporateHub, Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, "application": False, "summary": "Open/Close task from corresponding Task Log entry", - "depends": ["hr_timesheet", "project_stage_closed"], + "depends": ["hr_timesheet"], "data": ["views/account_analytic_line.xml"], } diff --git a/hr_timesheet_task_stage/models/account_analytic_line.py b/hr_timesheet_task_stage/models/account_analytic_line.py index 36037b0220..135033785c 100644 --- a/hr_timesheet_task_stage/models/account_analytic_line.py +++ b/hr_timesheet_task_stage/models/account_analytic_line.py @@ -12,7 +12,7 @@ class AccountAnalyticLine(models.Model): _inherit = "account.analytic.line" - is_task_closed = fields.Boolean(related="task_id.stage_id.closed") + is_task_closed = fields.Boolean(related="task_id.stage_id.is_closed") def action_open_task(self): ProjectTaskType = self.env["project.task.type"] @@ -21,7 +21,7 @@ def action_open_task(self): stage = ProjectTaskType.search( [ ("project_ids", "=", line.task_id.project_id.id), - ("closed", "=", False), + ("is_closed", "=", False), ], limit=1, ) @@ -41,7 +41,7 @@ def action_close_task(self): stage = ProjectTaskType.search( [ ("project_ids", "=", line.task_id.project_id.id), - ("closed", "=", True), + ("is_closed", "=", True), ], limit=1, ) diff --git a/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst b/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst index d392951999..06c14e52af 100644 --- a/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst +++ b/hr_timesheet_task_stage/readme/CONTRIBUTORS.rst @@ -11,3 +11,5 @@ * `CorporateHub `__ * Alexey Pelykh + +* Dhara Solanki diff --git a/hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py b/hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py index 442a9f51c2..bb23e05aa5 100644 --- a/hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py +++ b/hr_timesheet_task_stage/tests/test_hr_timesheet_task_stage.py @@ -17,10 +17,18 @@ def setUp(self): ) task_type_obj = self.env["project.task.type"] self.stage_open = task_type_obj.create( - {"name": "New", "closed": False, "project_ids": [(6, 0, self.project.ids)]} + { + "name": "New", + "is_closed": False, + "project_ids": [(6, 0, self.project.ids)], + } ) self.stage_close = task_type_obj.create( - {"name": "Done", "closed": True, "project_ids": [(6, 0, self.project.ids)]} + { + "name": "Done", + "is_closed": True, + "project_ids": [(6, 0, self.project.ids)], + } ) self.line = self.env["account.analytic.line"].create( { @@ -38,8 +46,8 @@ def test_open_close_task(self): def test_toggle_task_stage(self): self.line.action_toggle_task_stage() - self.assertTrue(self.line.task_id.stage_id.closed) + self.assertTrue(self.line.task_id.stage_id.is_closed) self.assertTrue(self.line.is_task_closed) self.line.action_toggle_task_stage() - self.assertFalse(self.line.task_id.stage_id.closed) + self.assertFalse(self.line.task_id.stage_id.is_closed) self.assertFalse(self.line.is_task_closed) From a9e142b5ec92ef9869e502b1e640e9afd237e291 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 1 Jul 2021 06:38:02 +0000 Subject: [PATCH 15/50] [UPD] Update hr_timesheet_task_stage.pot --- .../i18n/hr_timesheet_task_stage.pot | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot b/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot index 64c57b9496..ca3b055964 100644 --- a/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot +++ b/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -35,7 +35,22 @@ msgstr "" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed -msgid "Closed" +msgid "Closing Stage" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__display_name +msgid "Display Name" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__id +msgid "ID" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line____last_update +msgid "Last Modified on" msgstr "" #. module: hr_timesheet_task_stage @@ -45,7 +60,7 @@ msgstr "" #. module: hr_timesheet_task_stage #: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed -msgid "Tasks in this stage are considered closed." +msgid "Tasks in this stage are considered as closed." msgstr "" #. module: hr_timesheet_task_stage From a4b7abe8327ca6cff1e3c48406be4e998834ed33 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 1 Jul 2021 06:53:43 +0000 Subject: [PATCH 16/50] [UPD] README.rst --- hr_timesheet_task_stage/README.rst | 10 +++++----- hr_timesheet_task_stage/static/description/index.html | 8 +++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/hr_timesheet_task_stage/README.rst b/hr_timesheet_task_stage/README.rst index aeaa860755..7134be4b90 100644 --- a/hr_timesheet_task_stage/README.rst +++ b/hr_timesheet_task_stage/README.rst @@ -14,13 +14,13 @@ Task Log: Open/Close Task :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ftimesheet-lightgray.png?logo=github - :target: https://github.com/OCA/timesheet/tree/13.0/hr_timesheet_task_stage + :target: https://github.com/OCA/timesheet/tree/14.0/hr_timesheet_task_stage :alt: OCA/timesheet .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/timesheet-13-0/timesheet-13-0-hr_timesheet_task_stage + :target: https://translation.odoo-community.org/projects/timesheet-14-0/timesheet-14-0-hr_timesheet_task_stage :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/117/13.0 + :target: https://runbot.odoo-community.org/runbot/117/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -40,7 +40,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -85,6 +85,6 @@ 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/timesheet `_ project on GitHub. +This module is part of the `OCA/timesheet `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_timesheet_task_stage/static/description/index.html b/hr_timesheet_task_stage/static/description/index.html index d8de5b8674..d42d1b3e0e 100644 --- a/hr_timesheet_task_stage/static/description/index.html +++ b/hr_timesheet_task_stage/static/description/index.html @@ -367,7 +367,7 @@

    Task Log: Open/Close Task

    !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

    +

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

    This module allows to open and close tasks from account analytic lines. The selected closed stage is the first one that is found with the mark “Closed” checked.

    @@ -388,7 +388,7 @@

    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.

    +feedback.

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

    @@ -421,6 +421,8 @@

    Contributors

  • Alexey Pelykh <alexey.pelykh@corphub.eu>
  • +
  • Dhara Solanki <dhara.solanki@initos.com>

    +
  • @@ -430,7 +432,7 @@

    Maintainers

    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/timesheet project on GitHub.

    +

    This module is part of the OCA/timesheet project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    From 092ca251fabe60eb339855f23b059cad37d30acb Mon Sep 17 00:00:00 2001 From: Simon S Date: Wed, 16 Feb 2022 08:11:17 +0000 Subject: [PATCH 17/50] Added translation using Weblate (Swedish) --- hr_timesheet_task_stage/i18n/sv.po | 77 ++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 hr_timesheet_task_stage/i18n/sv.po diff --git a/hr_timesheet_task_stage/i18n/sv.po b/hr_timesheet_task_stage/i18n/sv.po new file mode 100644 index 0000000000..69fb23f464 --- /dev/null +++ b/hr_timesheet_task_stage/i18n/sv.po @@ -0,0 +1,77 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_timesheet_task_stage +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: sv\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Closed" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Open" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Close task" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Closing Stage" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__display_name +msgid "Display Name" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__id +msgid "ID" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line____last_update +msgid "Last Modified on" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Open task" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Tasks in this stage are considered as closed." +msgstr "" + +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 +#, python-format +msgid "There isn't any stage with \"Closed\" checked. Please mark any." +msgstr "" + +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 +#, python-format +msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." +msgstr "" From ecfbb59483ae4c8aa8542937793b66030ebfdba0 Mon Sep 17 00:00:00 2001 From: Simon S Date: Wed, 16 Feb 2022 08:34:11 +0000 Subject: [PATCH 18/50] Translated using Weblate (Swedish) Currently translated at 100.0% (12 of 12 strings) Translation: timesheet-14.0/timesheet-14.0-hr_timesheet_task_stage Translate-URL: https://translation.odoo-community.org/projects/timesheet-14-0/timesheet-14-0-hr_timesheet_task_stage/sv/ --- hr_timesheet_task_stage/i18n/sv.po | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/hr_timesheet_task_stage/i18n/sv.po b/hr_timesheet_task_stage/i18n/sv.po index 69fb23f464..746b306b2d 100644 --- a/hr_timesheet_task_stage/i18n/sv.po +++ b/hr_timesheet_task_stage/i18n/sv.po @@ -6,72 +6,76 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2022-02-16 11:16+0000\n" +"Last-Translator: Simon S \n" "Language-Team: none\n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form msgid "Closed" -msgstr "" +msgstr "Stängd" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form msgid "Open" -msgstr "" +msgstr "Öppen" #. module: hr_timesheet_task_stage #: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line msgid "Analytic Line" -msgstr "" +msgstr "Objektrad" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree msgid "Close task" -msgstr "" +msgstr "Stäng aktivitet" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed msgid "Closing Stage" -msgstr "" +msgstr "Stängningsetapp" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__display_name msgid "Display Name" -msgstr "" +msgstr "Visningsnamn" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__id msgid "ID" -msgstr "" +msgstr "ID" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line____last_update msgid "Last Modified on" -msgstr "" +msgstr "Senast ändrad" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree msgid "Open task" -msgstr "" +msgstr "Öppna aktivitet" #. module: hr_timesheet_task_stage #: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed msgid "Tasks in this stage are considered as closed." -msgstr "" +msgstr "Aktiviteter i denna etapp anses vara stängda." #. module: hr_timesheet_task_stage #: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 #, python-format msgid "There isn't any stage with \"Closed\" checked. Please mark any." -msgstr "" +msgstr "Det finns ingen etapp med \"Stängd\" ikryssad. Var vänlig markera en." #. module: hr_timesheet_task_stage #: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 #, python-format msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." msgstr "" +"Det finns ingen etapp med \"Stängd\" som inte är ikryssad. Var vänlig " +"avmarkera en." From 1331b600b02d9ff1b01ad8452563115626e27255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi?= Date: Tue, 10 May 2022 08:53:01 +0000 Subject: [PATCH 19/50] Added translation using Weblate (French) --- hr_timesheet_task_stage/i18n/fr.po | 77 ++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 hr_timesheet_task_stage/i18n/fr.po diff --git a/hr_timesheet_task_stage/i18n/fr.po b/hr_timesheet_task_stage/i18n/fr.po new file mode 100644 index 0000000000..f924289b16 --- /dev/null +++ b/hr_timesheet_task_stage/i18n/fr.po @@ -0,0 +1,77 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_timesheet_task_stage +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Closed" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form +msgid "Open" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line +msgid "Analytic Line" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Close task" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Closing Stage" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__display_name +msgid "Display Name" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__id +msgid "ID" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line____last_update +msgid "Last Modified on" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree +msgid "Open task" +msgstr "" + +#. module: hr_timesheet_task_stage +#: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed +msgid "Tasks in this stage are considered as closed." +msgstr "" + +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 +#, python-format +msgid "There isn't any stage with \"Closed\" checked. Please mark any." +msgstr "" + +#. module: hr_timesheet_task_stage +#: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 +#, python-format +msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." +msgstr "" From ab3c4645cde668ae1335accd23c6d22834d8d447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi?= Date: Tue, 10 May 2022 08:56:25 +0000 Subject: [PATCH 20/50] Translated using Weblate (French) Currently translated at 91.6% (11 of 12 strings) Translation: timesheet-14.0/timesheet-14.0-hr_timesheet_task_stage Translate-URL: https://translation.odoo-community.org/projects/timesheet-14-0/timesheet-14-0-hr_timesheet_task_stage/fr/ --- hr_timesheet_task_stage/i18n/fr.po | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/hr_timesheet_task_stage/i18n/fr.po b/hr_timesheet_task_stage/i18n/fr.po index f924289b16..93bbdce986 100644 --- a/hr_timesheet_task_stage/i18n/fr.po +++ b/hr_timesheet_task_stage/i18n/fr.po @@ -6,43 +6,45 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2022-05-10 11:05+0000\n" +"Last-Translator: Rémi \n" "Language-Team: none\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.3.2\n" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form msgid "Closed" -msgstr "" +msgstr "Terminé" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_form msgid "Open" -msgstr "" +msgstr "En cours" #. module: hr_timesheet_task_stage #: model:ir.model,name:hr_timesheet_task_stage.model_account_analytic_line msgid "Analytic Line" -msgstr "" +msgstr "Ligne Analytique" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree msgid "Close task" -msgstr "" +msgstr "Terminer la tâche" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed msgid "Closing Stage" -msgstr "" +msgstr "Étape terminée" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__display_name msgid "Display Name" -msgstr "" +msgstr "Nom Affiché" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__id @@ -52,26 +54,28 @@ msgstr "" #. module: hr_timesheet_task_stage #: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line____last_update msgid "Last Modified on" -msgstr "" +msgstr "Dernière Modification le" #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree msgid "Open task" -msgstr "" +msgstr "Ouvrir la tâche" #. module: hr_timesheet_task_stage #: model:ir.model.fields,help:hr_timesheet_task_stage.field_account_analytic_line__is_task_closed msgid "Tasks in this stage are considered as closed." -msgstr "" +msgstr "Les tâches dans cette étape sont considérées terminées." #. module: hr_timesheet_task_stage #: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 #, python-format msgid "There isn't any stage with \"Closed\" checked. Please mark any." -msgstr "" +msgstr "Aucune étape n'a le champ \"Terminé\" coché. Merci d'en choisir une." #. module: hr_timesheet_task_stage #: code:addons/hr_timesheet_task_stage/models/account_analytic_line.py:0 #, python-format msgid "There isn't any stage with \"Closed\" unchecked. Please unmark any." msgstr "" +"Aucune étape n'a le champ \"Terminé\" non coché. Merci d'en désélectionner " +"au moins une." From 53be2d506557dec24ce5bc1598a9dad9e13cd7b5 Mon Sep 17 00:00:00 2001 From: Manuel Calero Date: Tue, 28 Jun 2022 10:40:54 +0200 Subject: [PATCH 21/50] [MIG] hr_timesheet_task_stage: Migration to 15.0 --- hr_timesheet_task_stage/README.rst | 10 +++++----- hr_timesheet_task_stage/__manifest__.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/hr_timesheet_task_stage/README.rst b/hr_timesheet_task_stage/README.rst index 7134be4b90..b838bfab43 100644 --- a/hr_timesheet_task_stage/README.rst +++ b/hr_timesheet_task_stage/README.rst @@ -14,16 +14,16 @@ Task Log: Open/Close Task :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Ftimesheet-lightgray.png?logo=github - :target: https://github.com/OCA/timesheet/tree/14.0/hr_timesheet_task_stage + :target: https://github.com/OCA/timesheet/tree/15.0/hr_timesheet_task_stage :alt: OCA/timesheet .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/timesheet-14-0/timesheet-14-0-hr_timesheet_task_stage :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/117/14.0 + :target: https://runbot.odoo-community.org/runbot/117/15.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module allows to open and close tasks from account analytic lines. The selected closed stage is the first one that is found with the mark @@ -40,7 +40,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -85,6 +85,6 @@ 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/timesheet `_ project on GitHub. +This module is part of the `OCA/timesheet `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/hr_timesheet_task_stage/__manifest__.py b/hr_timesheet_task_stage/__manifest__.py index e8a00b342b..0c9acbc758 100644 --- a/hr_timesheet_task_stage/__manifest__.py +++ b/hr_timesheet_task_stage/__manifest__.py @@ -8,7 +8,7 @@ { "name": "Task Log: Open/Close Task", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "category": "Operations/Timesheets", "website": "https://github.com/OCA/timesheet", "author": "Tecnativa, CorporateHub, Odoo Community Association (OCA)", From 81d1749945cfb0e773986d88086cc9247954dba5 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Tue, 4 Oct 2022 07:22:59 +0000 Subject: [PATCH 22/50] [UPD] Update hr_timesheet_task_stage.pot --- .../i18n/hr_timesheet_task_stage.pot | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot b/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot index ca3b055964..880a979788 100644 --- a/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot +++ b/hr_timesheet_task_stage/i18n/hr_timesheet_task_stage.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -38,21 +38,6 @@ msgstr "" msgid "Closing Stage" msgstr "" -#. module: hr_timesheet_task_stage -#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__display_name -msgid "Display Name" -msgstr "" - -#. module: hr_timesheet_task_stage -#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line__id -msgid "ID" -msgstr "" - -#. module: hr_timesheet_task_stage -#: model:ir.model.fields,field_description:hr_timesheet_task_stage.field_account_analytic_line____last_update -msgid "Last Modified on" -msgstr "" - #. module: hr_timesheet_task_stage #: model_terms:ir.ui.view,arch_db:hr_timesheet_task_stage.account_analytic_line_tree msgid "Open task" From b347940acc3d79884477da6df7db102c056d6713 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 4 Oct 2022 07:27:25 +0000 Subject: [PATCH 23/50] [UPD] README.rst --- hr_timesheet_task_stage/README.rst | 4 ++-- hr_timesheet_task_stage/static/description/index.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hr_timesheet_task_stage/README.rst b/hr_timesheet_task_stage/README.rst index b838bfab43..9303905aaa 100644 --- a/hr_timesheet_task_stage/README.rst +++ b/hr_timesheet_task_stage/README.rst @@ -17,13 +17,13 @@ Task Log: Open/Close Task :target: https://github.com/OCA/timesheet/tree/15.0/hr_timesheet_task_stage :alt: OCA/timesheet .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/timesheet-14-0/timesheet-14-0-hr_timesheet_task_stage + :target: https://translation.odoo-community.org/projects/timesheet-15-0/timesheet-15-0-hr_timesheet_task_stage :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png :target: https://runbot.odoo-community.org/runbot/117/15.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module allows to open and close tasks from account analytic lines. The selected closed stage is the first one that is found with the mark diff --git a/hr_timesheet_task_stage/static/description/index.html b/hr_timesheet_task_stage/static/description/index.html index d42d1b3e0e..01f1d8aade 100644 --- a/hr_timesheet_task_stage/static/description/index.html +++ b/hr_timesheet_task_stage/static/description/index.html @@ -367,7 +367,7 @@

    Task Log: Open/Close Task

    !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

    +

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

    This module allows to open and close tasks from account analytic lines. The selected closed stage is the first one that is found with the mark “Closed” checked.

    @@ -388,7 +388,7 @@

    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.

    +feedback.

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

    @@ -432,7 +432,7 @@

    Maintainers

    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/timesheet project on GitHub.

    +

    This module is part of the OCA/timesheet project on GitHub.

    You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

    From 8cee2da881368ea759513e7e48bafbe7265690dd Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 25 Oct 2022 21:07:55 +0200 Subject: [PATCH 24/50] [FIX] hr_timesheet_task_stage: Avoid texts on buttons Since v14, string attribute of elements are directly shown in the views as text instead of being a tooltip, and thus, it takes a lot of space in screen. And it was not the intended visualization when the module was conceived, just a side effect. Thus, we restore what we expect, moving string to title for having the tooltips again. TT40169 --- hr_timesheet_task_stage/views/account_analytic_line.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hr_timesheet_task_stage/views/account_analytic_line.xml b/hr_timesheet_task_stage/views/account_analytic_line.xml index 89d852d4bb..f012307762 100644 --- a/hr_timesheet_task_stage/views/account_analytic_line.xml +++ b/hr_timesheet_task_stage/views/account_analytic_line.xml @@ -13,7 +13,7 @@