diff --git a/README.md b/README.md index a7961b8c29..38d3edb887 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ addon | version | maintainers | summary [project_task_parent_due_auto](project_task_parent_due_auto/) | 16.0.1.0.1 | david-banon-tecnativa | Recalculates parent task's due date when child task changes [project_task_personal_stage_auto_fold](project_task_personal_stage_auto_fold/) | 16.0.1.0.0 | | Moves task to the first fold personal stage when done [project_task_project_required](project_task_project_required/) | 16.0.1.0.0 | | Set project on task as a mandatory field -[project_task_pull_request](project_task_pull_request/) | 16.0.1.0.0 | | Adds a field for a PR URI to project tasks +[project_task_pull_request](project_task_pull_request/) | 16.0.1.1.0 | | Adds a field for a PR URI to project tasks [project_task_pull_request_state](project_task_pull_request_state/) | 16.0.1.0.0 | | Track Pull Request state in tasks [project_task_recurring_activity](project_task_recurring_activity/) | 16.0.1.0.0 | dessanhemrayev CetmixGitDrone | Project Task Recurring Activity [project_task_stage_change_restriction](project_task_stage_change_restriction/) | 16.0.1.0.0 | | Restrict project task stage diff --git a/project_sequence/models/project_project.py b/project_sequence/models/project_project.py index ddd5b5a6c8..dde164d26f 100644 --- a/project_sequence/models/project_project.py +++ b/project_sequence/models/project_project.py @@ -28,12 +28,16 @@ class ProjectProject(models.Model): required=False, ) - def _sync_analytic_account_name(self): - """Set analytic account name equal to project's display name.""" + def _sync_analytic_account(self): + """Set analytic account name & code equal to project's name & sequence""" for rec in self: - if not rec.analytic_account_id: - continue - rec.analytic_account_id.name = rec.display_name + if rec.analytic_account_id: + rec.analytic_account_id.write( + { + "name": rec.name, + "code": rec.sequence_code, + } + ) def name_get(self): """Prefix name with sequence code if they are different.""" @@ -72,16 +76,14 @@ def create(self, vals_list): # It is important to set sequence_code before calling super() because # other modules such as hr_timesheet expect the name to always have a value for vals in vals_list: - if not vals.get("sequence_code", False): + if "sequence_code" not in vals: vals["sequence_code"] = self.env["ir.sequence"].next_by_code( "project.sequence" ) if not vals.get("name"): vals["name"] = vals["sequence_code"] res = super().create(vals_list) - # The analytic account is created with just the project name, but - # it is more useful to let it contain the project sequence too - res._sync_analytic_account_name() + res._sync_analytic_account() return res def write(self, vals): @@ -94,5 +96,5 @@ def write(self, vals): sequence_code = vals.get("sequence_code", one.sequence_code) name = vals.get("name") or sequence_code super().write(dict(vals, name=name)) - self._sync_analytic_account_name() + self._sync_analytic_account() return True diff --git a/project_sequence/tests/test_project_sequence.py b/project_sequence/tests/test_project_sequence.py index 5eaa040374..276c45cb17 100644 --- a/project_sequence/tests/test_project_sequence.py +++ b/project_sequence/tests/test_project_sequence.py @@ -20,18 +20,7 @@ def setUpClass(cls): ) cls.pjr_seq = cls.env.ref("project_sequence.seq_project_sequence") cls.pjr_seq.date_range_ids.unlink() - default_plan_id = ( - cls.env["account.analytic.plan"] - .sudo() - .search( - [ - "|", - ("company_id", "=", False), - ("company_id", "=", cls.env.company.id), - ], - limit=1, - ) - ) + default_plan_id = cls.env.company.analytic_plan_id cls.analytic_account = cls.env["account.analytic.account"].create( { "name": "aaa", @@ -69,6 +58,7 @@ def test_analytic_account_after_creation_no_name(self): self.assertEqual(proj.name, "23-00011") self.assertEqual(proj.display_name, "23-00011") self.assertEqual(proj.analytic_account_id.name, "23-00011") + self.assertEqual(proj.analytic_account_id.code, "23-00011") def test_analytic_account_after_creation_named(self): """Project's analytic account is named like project's display name.""" @@ -78,7 +68,8 @@ def test_analytic_account_after_creation_named(self): self.assertEqual(proj.sequence_code, "23-00011") self.assertEqual(proj.name, "whatever") self.assertEqual(proj.display_name, "23-00011 - whatever") - self.assertEqual(proj.analytic_account_id.name, "23-00011 - whatever") + self.assertEqual(proj.analytic_account_id.name, "whatever") + self.assertEqual(proj.analytic_account_id.code, "23-00011") @users("manager") def test_sequence_copied_to_name_if_emptied(self): @@ -89,13 +80,15 @@ def test_sequence_copied_to_name_if_emptied(self): self.assertEqual(proj.name, "whatever") self.assertEqual(proj.sequence_code, "23-00011") self.assertEqual(proj.display_name, "23-00011 - whatever") - self.assertEqual(proj.analytic_account_id.name, "23-00011 - whatever") + self.assertEqual(proj.analytic_account_id.name, "whatever") + self.assertEqual(proj.analytic_account_id.code, "23-00011") with Form(proj) as prj_f: prj_f.name = False self.assertEqual(proj.name, "23-00011") self.assertEqual(proj.sequence_code, "23-00011") self.assertEqual(proj.display_name, "23-00011") self.assertEqual(proj.analytic_account_id.name, "23-00011") + self.assertEqual(proj.analytic_account_id.code, "23-00011") @users("manager") def test_sequence_not_copied_to_another_project(self): @@ -118,35 +111,16 @@ def test_sequence_unique(self): @users("manager") def test_project_without_sequence(self): """Preexisting projects had no sequence, and they should display fine.""" - proj1 = self.env["project.project"].search( - [ - ("sequence_code", "=", False), - ], - limit=1, + proj1 = self.env["project.project"].create( + {"name": "one", "sequence_code": False} ) - proj1.name = "one" - self.assertFalse(proj1.sequence_code) self.assertEqual(proj1.display_name, "one") + self.assertFalse(proj1.sequence_code) # Make sure that the sequence is not increased proj2 = self.env["project.project"].create({"name": "two"}) self.assertEqual(proj2.sequence_code, "23-00011") self.assertEqual(proj2.display_name, "23-00011 - two") - @users("manager") - def test_project_with_empty_sequence(self): - """Sequence is applied when creating project with an empty sequence""" - proj1 = self.env["project.project"].create( - {"name": "whatever", "sequence_code": ""} - ) - self.assertEqual(proj1.sequence_code, "23-00011") - self.assertEqual(proj1.display_name, "23-00011 - whatever") - # Sequence is applied when creating project with sequence in False - proj2 = self.env["project.project"].create( - {"name": "whatever", "sequence_code": False} - ) - self.assertEqual(proj2.sequence_code, "23-00012") - self.assertEqual(proj2.display_name, "23-00012 - whatever") - def test_custom_pattern(self): """Display name pattern can be customized.""" self.env["ir.config_parameter"].set_param( @@ -168,21 +142,10 @@ def test_custom_pattern(self): self.assertEqual(proj.display_name, "23-00013") self.assertEqual(proj.sequence_code, "23-00013") - def test_sync_analytic_account_name(self): + def test_sync_analytic_account(self): """Set analytic account name equal to project's display name.""" proj = self.env["project.project"].create({"name": "one"}) - default_plan_id = ( - self.env["account.analytic.plan"] - .sudo() - .search( - [ - "|", - ("company_id", "=", False), - ("company_id", "=", self.env.company.id), - ], - limit=1, - ) - ) + default_plan_id = self.env.company.analytic_plan_id analytic_account = self.env["account.analytic.account"].create( { "name": proj.display_name, @@ -195,12 +158,13 @@ def test_sync_analytic_account_name(self): } ) proj.analytic_account_id = analytic_account - proj._sync_analytic_account_name() - self.assertEqual(proj.analytic_account_id.name, proj.display_name) + proj._sync_analytic_account() + self.assertEqual(proj.analytic_account_id.name, proj.name) + self.assertEqual(proj.analytic_account_id.code, proj.sequence_code) # Test when analytic_account_id is not set proj.analytic_account_id = False - proj._sync_analytic_account_name() + proj._sync_analytic_account() self.assertTrue(True) # Placeholder assertion to ensure the code execution def test_name_search(self): diff --git a/project_task_pull_request/README.rst b/project_task_pull_request/README.rst index f09b61927a..4b711e1edf 100644 --- a/project_task_pull_request/README.rst +++ b/project_task_pull_request/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ========================= Project Task Pull Request ========================= @@ -7,13 +11,13 @@ Project Task Pull Request !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:8571ef2dc90d493ebc070e652c90164379e98c3554cb2548de56232b46769014 + !! source digest: sha256:fa52e56d7d384619d9e9d1358c4e400decb5c85659968e94294954338cc04e02 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |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 +.. |badge2| image:: https://img.shields.io/badge/license-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%2Fproject-lightgray.png?logo=github diff --git a/project_task_pull_request/__manifest__.py b/project_task_pull_request/__manifest__.py index 80d17a879d..5f8c9b6293 100644 --- a/project_task_pull_request/__manifest__.py +++ b/project_task_pull_request/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Project Task Pull Request", "summary": "Adds a field for a PR URI to project tasks", - "version": "16.0.1.0.0", + "version": "16.0.1.1.0", "category": "Project Management", "website": "https://github.com/OCA/project", "author": "SMDrugstore, " "Tecnativa, " "Odoo Community Association (OCA)", diff --git a/project_task_pull_request/i18n/ar.po b/project_task_pull_request/i18n/ar.po index b2a00a4a08..895c8b9bdd 100644 --- a/project_task_pull_request/i18n/ar.po +++ b/project_task_pull_request/i18n/ar.po @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/ca.po b/project_task_pull_request/i18n/ca.po index c798d0559a..523ccd0116 100644 --- a/project_task_pull_request/i18n/ca.po +++ b/project_task_pull_request/i18n/ca.po @@ -45,6 +45,11 @@ msgstr "" msgid "Project" msgstr "Projecte" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/de.po b/project_task_pull_request/i18n/de.po index 40524d2636..ff795bff47 100644 --- a/project_task_pull_request/i18n/de.po +++ b/project_task_pull_request/i18n/de.po @@ -45,6 +45,11 @@ msgstr "" msgid "Project" msgstr "Projekt" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/el.po b/project_task_pull_request/i18n/el.po index f8df029f72..19c25924a6 100644 --- a/project_task_pull_request/i18n/el.po +++ b/project_task_pull_request/i18n/el.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/es.po b/project_task_pull_request/i18n/es.po index e7256e3aad..e4973c0fd5 100644 --- a/project_task_pull_request/i18n/es.po +++ b/project_task_pull_request/i18n/es.po @@ -45,6 +45,11 @@ msgstr "" msgid "Project" msgstr "Proyecto" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/es_AR.po b/project_task_pull_request/i18n/es_AR.po index 37039fcd1f..ea975e15cf 100644 --- a/project_task_pull_request/i18n/es_AR.po +++ b/project_task_pull_request/i18n/es_AR.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "Proyecto" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/es_CR.po b/project_task_pull_request/i18n/es_CR.po index 68656bb875..20e6c247c0 100644 --- a/project_task_pull_request/i18n/es_CR.po +++ b/project_task_pull_request/i18n/es_CR.po @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/es_MX.po b/project_task_pull_request/i18n/es_MX.po index 8041ff2591..4e6fb0da67 100644 --- a/project_task_pull_request/i18n/es_MX.po +++ b/project_task_pull_request/i18n/es_MX.po @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "Proyecto" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/es_VE.po b/project_task_pull_request/i18n/es_VE.po index a36d7ab101..d8cdce1903 100644 --- a/project_task_pull_request/i18n/es_VE.po +++ b/project_task_pull_request/i18n/es_VE.po @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/fi.po b/project_task_pull_request/i18n/fi.po index 5d2002c99d..7c2c69d0aa 100644 --- a/project_task_pull_request/i18n/fi.po +++ b/project_task_pull_request/i18n/fi.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "Projekti" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/fr.po b/project_task_pull_request/i18n/fr.po index 56646c8fa4..adff42eadb 100644 --- a/project_task_pull_request/i18n/fr.po +++ b/project_task_pull_request/i18n/fr.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "Projet" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/gl.po b/project_task_pull_request/i18n/gl.po index eda952c7ef..5decc178cc 100644 --- a/project_task_pull_request/i18n/gl.po +++ b/project_task_pull_request/i18n/gl.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/hr.po b/project_task_pull_request/i18n/hr.po index 5b2d833e8b..913cada73a 100644 --- a/project_task_pull_request/i18n/hr.po +++ b/project_task_pull_request/i18n/hr.po @@ -17,8 +17,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: project_task_pull_request #: model:ir.model.fields,field_description:project_task_pull_request.field_project_project__pr_required_states @@ -44,6 +44,11 @@ msgstr "Molimo dodajte URL zahtijevu prije prebacivanja zadatka u ovu fazu" msgid "Project" msgstr "Projekt" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/hr_HR.po b/project_task_pull_request/i18n/hr_HR.po index 4a8fb97f5b..2cc47c9752 100644 --- a/project_task_pull_request/i18n/hr_HR.po +++ b/project_task_pull_request/i18n/hr_HR.po @@ -17,8 +17,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: project_task_pull_request #: model:ir.model.fields,field_description:project_task_pull_request.field_project_project__pr_required_states @@ -44,6 +44,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/hu.po b/project_task_pull_request/i18n/hu.po index 586333abc5..b1166c4bbd 100644 --- a/project_task_pull_request/i18n/hu.po +++ b/project_task_pull_request/i18n/hu.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/it.po b/project_task_pull_request/i18n/it.po index 0d12c8b16d..c1d268492d 100644 --- a/project_task_pull_request/i18n/it.po +++ b/project_task_pull_request/i18n/it.po @@ -9,7 +9,7 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-04-28 08:33+0000\n" -"PO-Revision-Date: 2024-01-02 11:37+0000\n" +"PO-Revision-Date: 2026-01-08 18:42+0000\n" "Last-Translator: mymage \n" "Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" "Language: it\n" @@ -17,7 +17,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n != 1;\n" -"X-Generator: Weblate 4.17\n" +"X-Generator: Weblate 5.10.4\n" #. module: project_task_pull_request #: model:ir.model.fields,field_description:project_task_pull_request.field_project_project__pr_required_states @@ -45,6 +45,11 @@ msgstr "" msgid "Project" msgstr "Progetto" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "Pull request" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/ja.po b/project_task_pull_request/i18n/ja.po index 15734ec16e..13b252336f 100644 --- a/project_task_pull_request/i18n/ja.po +++ b/project_task_pull_request/i18n/ja.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/lt.po b/project_task_pull_request/i18n/lt.po index 05b6e59254..48f70f8511 100644 --- a/project_task_pull_request/i18n/lt.po +++ b/project_task_pull_request/i18n/lt.po @@ -16,8 +16,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n" -"%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"(n%100<10 || n%100>=20) ? 1 : 2);\n" #. module: project_task_pull_request #: model:ir.model.fields,field_description:project_task_pull_request.field_project_project__pr_required_states @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/lv.po b/project_task_pull_request/i18n/lv.po index 52df273485..536ea4ff17 100644 --- a/project_task_pull_request/i18n/lv.po +++ b/project_task_pull_request/i18n/lv.po @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/mk.po b/project_task_pull_request/i18n/mk.po index 3e83bdcda8..e527b06123 100644 --- a/project_task_pull_request/i18n/mk.po +++ b/project_task_pull_request/i18n/mk.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/mn.po b/project_task_pull_request/i18n/mn.po index 7ec06f3d20..2c3c151e0a 100644 --- a/project_task_pull_request/i18n/mn.po +++ b/project_task_pull_request/i18n/mn.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/nl.po b/project_task_pull_request/i18n/nl.po index 24c46f5832..bcc0fb3d62 100644 --- a/project_task_pull_request/i18n/nl.po +++ b/project_task_pull_request/i18n/nl.po @@ -45,6 +45,11 @@ msgstr "" msgid "Project" msgstr "Project" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/nl_NL.po b/project_task_pull_request/i18n/nl_NL.po index 6e6f050af2..2bf01cc1c0 100644 --- a/project_task_pull_request/i18n/nl_NL.po +++ b/project_task_pull_request/i18n/nl_NL.po @@ -45,6 +45,11 @@ msgstr "" msgid "Project" msgstr "Project" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/pl.po b/project_task_pull_request/i18n/pl.po index 60ae2f1bca..5a34313e59 100644 --- a/project_task_pull_request/i18n/pl.po +++ b/project_task_pull_request/i18n/pl.po @@ -16,9 +16,9 @@ msgstr "" "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%10>=2 && n%10<=4) && (n" -"%100<12 || n%100>=14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n" -"%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>=14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " +"n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" #. module: project_task_pull_request #: model:ir.model.fields,field_description:project_task_pull_request.field_project_project__pr_required_states @@ -44,6 +44,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/project_task_pull_request.pot b/project_task_pull_request/i18n/project_task_pull_request.pot index b4c420a609..68f1c2d99d 100644 --- a/project_task_pull_request/i18n/project_task_pull_request.pot +++ b/project_task_pull_request/i18n/project_task_pull_request.pot @@ -38,6 +38,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/pt.po b/project_task_pull_request/i18n/pt.po index db03dafdfe..c9ff5b0e64 100644 --- a/project_task_pull_request/i18n/pt.po +++ b/project_task_pull_request/i18n/pt.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "Projeto" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/pt_BR.po b/project_task_pull_request/i18n/pt_BR.po index 0c703bdf79..4467535792 100644 --- a/project_task_pull_request/i18n/pt_BR.po +++ b/project_task_pull_request/i18n/pt_BR.po @@ -12,8 +12,8 @@ msgstr "" "PO-Revision-Date: 2024-05-22 15:35+0000\n" "Last-Translator: Rodrigo Macedo \n" -"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" -"23907/pt_BR/)\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -46,6 +46,11 @@ msgstr "" msgid "Project" msgstr "Projeto" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/pt_PT.po b/project_task_pull_request/i18n/pt_PT.po index 9643595da8..cb5da3b756 100644 --- a/project_task_pull_request/i18n/pt_PT.po +++ b/project_task_pull_request/i18n/pt_PT.po @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "Projeto" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/ro.po b/project_task_pull_request/i18n/ro.po index 661d61324d..a04a08a251 100644 --- a/project_task_pull_request/i18n/ro.po +++ b/project_task_pull_request/i18n/ro.po @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/sl.po b/project_task_pull_request/i18n/sl.po index 1752d37f70..d50f02dbab 100644 --- a/project_task_pull_request/i18n/sl.po +++ b/project_task_pull_request/i18n/sl.po @@ -17,8 +17,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" -"%100==4 ? 2 : 3);\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || " +"n%100==4 ? 2 : 3);\n" #. module: project_task_pull_request #: model:ir.model.fields,field_description:project_task_pull_request.field_project_project__pr_required_states @@ -44,6 +44,11 @@ msgstr "Dodajte URI za PR pred premikom opravila v to stopnjo." msgid "Project" msgstr "Projekt" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/sv.po b/project_task_pull_request/i18n/sv.po index 116001e7ec..3d607b8801 100644 --- a/project_task_pull_request/i18n/sv.po +++ b/project_task_pull_request/i18n/sv.po @@ -42,6 +42,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/tr.po b/project_task_pull_request/i18n/tr.po index 6fd0564913..4e3970f324 100644 --- a/project_task_pull_request/i18n/tr.po +++ b/project_task_pull_request/i18n/tr.po @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "Proje" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/uk.po b/project_task_pull_request/i18n/uk.po index 117cae951c..57db62300a 100644 --- a/project_task_pull_request/i18n/uk.po +++ b/project_task_pull_request/i18n/uk.po @@ -16,8 +16,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " +"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" #. module: project_task_pull_request #: model:ir.model.fields,field_description:project_task_pull_request.field_project_project__pr_required_states @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/i18n/zh_CN.po b/project_task_pull_request/i18n/zh_CN.po index 5894fbcae1..aa7f75ffd9 100644 --- a/project_task_pull_request/i18n/zh_CN.po +++ b/project_task_pull_request/i18n/zh_CN.po @@ -43,6 +43,11 @@ msgstr "" msgid "Project" msgstr "项目" +#. module: project_task_pull_request +#: model_terms:ir.ui.view,arch_db:project_task_pull_request.view_task_form2 +msgid "Pull Request" +msgstr "" + #. module: project_task_pull_request #: model_terms:ir.ui.view,arch_db:project_task_pull_request.edit_project msgid "Pull Request URIs" diff --git a/project_task_pull_request/static/description/index.html b/project_task_pull_request/static/description/index.html index 6e1ac3c71d..945a4041b6 100644 --- a/project_task_pull_request/static/description/index.html +++ b/project_task_pull_request/static/description/index.html @@ -1,18 +1,18 @@ - -Project Task Pull Request +README.rst -
-

Project Task Pull Request

+
+ + +Odoo Community Association + +
+

Project Task Pull Request

-

Beta License: AGPL-3 OCA/project Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/project Translate me on Weblate Try me on Runboat

This module extends the functionality of project to allow you to add PR URIs to tasks and require PR URIs before tasks can be moved to certain stages.

@@ -387,7 +392,7 @@

Project Task Pull Request

-

Usage

+

Usage

To use this module, you need to:

  1. Go to Project -> Configuration -> Project
  2. @@ -400,7 +405,7 @@

    Usage

-

Bug Tracker

+

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 @@ -408,16 +413,16 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • SMDrugstore
  • Tecnativa
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +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.

@@ -443,5 +450,6 @@

Maintainers

+
diff --git a/project_task_pull_request/views/project_task_pull_request_view.xml b/project_task_pull_request/views/project_task_pull_request_view.xml index 53d3fddaa8..accddfb638 100644 --- a/project_task_pull_request/views/project_task_pull_request_view.xml +++ b/project_task_pull_request/views/project_task_pull_request_view.xml @@ -7,16 +7,21 @@ project.task - - - + + + + + + + diff --git a/project_timesheet_time_control/i18n/pt_BR.po b/project_timesheet_time_control/i18n/pt_BR.po index 546fd54527..bd00473a16 100644 --- a/project_timesheet_time_control/i18n/pt_BR.po +++ b/project_timesheet_time_control/i18n/pt_BR.po @@ -9,8 +9,8 @@ msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-05-10 02:40+0000\n" -"PO-Revision-Date: 2023-10-28 09:51+0000\n" -"Last-Translator: Adriano Prado \n" +"PO-Revision-Date: 2026-01-13 17:44+0000\n" +"Last-Translator: Luis Felipe Miléo \n" "Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/" "23907/pt_BR/)\n" "Language: pt_BR\n" @@ -18,7 +18,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 4.17\n" +"X-Generator: Weblate 5.10.4\n" #. module: project_timesheet_time_control #. odoo-python @@ -134,7 +134,7 @@ msgstr "Nome Exibição" #: model:ir.model.fields,field_description:project_timesheet_time_control.field_account_analytic_line__date_time_end #: model:ir.model.fields,field_description:project_timesheet_time_control.field_hr_timesheet_switch__date_time_end msgid "End Time" -msgstr "Hora Término" +msgstr "Hora de Término" #. module: project_timesheet_time_control #: model_terms:ir.ui.view,arch_db:project_timesheet_time_control.project_invoice_form @@ -143,7 +143,7 @@ msgstr "Hora Término" #: model_terms:ir.ui.view,arch_db:project_timesheet_time_control.view_task_form2_inherited #: model_terms:ir.ui.view,arch_db:project_timesheet_time_control.view_task_tree2_inherited msgid "End work" -msgstr "Fim Trabalho" +msgstr "Encerrar Trabalho" #. module: project_timesheet_time_control #: model:ir.model,name:project_timesheet_time_control.model_hr_timesheet_switch