Skip to content

Commit

Permalink
[MIG] project_key: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eferriere authored and docker-odoo committed Jan 30, 2025
1 parent 01e9df0 commit d066393
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 46 deletions.
10 changes: 5 additions & 5 deletions project_key/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ Project key
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproject-lightgray.png?logo=github
:target: https://github.com/OCA/project/tree/14.0/project_key
:target: https://github.com/OCA/project/tree/15.0/project_key
:alt: OCA/project
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_key
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/140/14.0
:target: https://runbot.odoo-community.org/runbot/140/15.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
|badge1| |badge2| |badge3| |badge4| |badge5|

This module provides functionality to uniquely identify projects and tasks by simple ``key`` field.

Expand Down Expand Up @@ -76,7 +76,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/project/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 <https://github.com/OCA/project/issues/new?body=module:%20project_key%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/project/issues/new?body=module:%20project_key%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Expand Down Expand Up @@ -113,6 +113,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/project <https://github.com/OCA/project/tree/14.0/project_key>`_ project on GitHub.
This module is part of the `OCA/project <https://github.com/OCA/project/tree/15.0/project_key>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion project_key/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Project key",
"summary": "Module decorates projects and tasks with Project Key",
"category": "Project",
"version": "14.0.1.0.2",
"version": "15.0.1.0.0",
"license": "LGPL-3",
"author": "Modoolar, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/project",
Expand Down
2 changes: 1 addition & 1 deletion project_key/i18n/es_AR.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
"PO-Revision-Date: 2021-04-01 03:48+0000\n"
"Last-Translator: Ignacio Buioli <[email protected]>\n"
Expand Down
41 changes: 13 additions & 28 deletions project_key/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,22 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-05-14 18:47+0000\n"
"POT-Creation-Date: 2023-01-18 15:37+0000\n"
"PO-Revision-Date: 2023-01-18 16:37+0100\n"
"Last-Translator: Yves Le Doeuff <[email protected]>\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"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.2\n"

#. module: project_key
#: model:ir.model.fields,field_description:project_key.field_project_project__display_name
#: model:ir.model.fields,field_description:project_key.field_project_task__display_name
msgid "Display Name"
msgstr "Nom affiché"

#. module: project_key
#: model:ir.model.fields,field_description:project_key.field_project_project__id
#: model:ir.model.fields,field_description:project_key.field_project_task__id
msgid "ID"
msgstr ""
"X-Generator: Poedit 3.0.1\n"

#. module: project_key
#: model:ir.model.fields,field_description:project_key.field_project_project__key
#: model:ir.model.fields,field_description:project_key.field_project_task__key
msgid "Key"
msgstr "Clé"

Expand All @@ -38,12 +28,6 @@ msgstr "Clé"
msgid "Key Sequence"
msgstr "Séquence de clé"

#. module: project_key
#: model:ir.model.fields,field_description:project_key.field_project_project____last_update
#: model:ir.model.fields,field_description:project_key.field_project_task____last_update
msgid "Last Modified on"
msgstr ""

#. module: project_key
#: model:ir.model,name:project_key.model_project_project
msgid "Project"
Expand All @@ -68,14 +52,15 @@ msgstr "Tâche"
#. module: project_key
#: model:ir.model.constraint,message:project_key.constraint_project_task_task_key_unique
msgid "Task key must be unique!"
msgstr "La clé de tâche doit être unique"
msgstr "La clé de tâche doit être unique !"

#. module: project_key
#: model:ir.model.fields,field_description:project_key.field_project_task__url
msgid "URL"
msgstr ""
msgstr "URL"

#. module: project_key
#: model:ir.model.fields,field_description:project_key.field_project_task__key
msgid "key"
msgstr "Clé"
#~ msgid "key"
#~ msgstr "Clé"

#~ msgid "Display Name"
#~ msgstr "Nom affiché"
2 changes: 1 addition & 1 deletion project_key/i18n/fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
"PO-Revision-Date: 2021-04-11 16:46+0000\n"
"Last-Translator: Yves Le Doeuff <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion project_key/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
"PO-Revision-Date: 2022-10-19 14:43+0000\n"
"Last-Translator: Sergio Zanchetta <[email protected]>\n"
Expand Down
2 changes: 1 addition & 1 deletion project_key/i18n/project_key.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion project_key/models/project_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Project(models.Model):
comodel_name="ir.sequence", string="Key Sequence", ondelete="restrict"
)

key = fields.Char(string="Key", size=10, required=False, index=True, copy=False)
key = fields.Char(size=10, required=False, index=True, copy=False)

_sql_constraints = [
("project_key_unique", "UNIQUE(key)", "Project key must be unique")
Expand Down
2 changes: 1 addition & 1 deletion project_key/models/project_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Task(models.Model):
_inherit = "project.task"

key = fields.Char(string="key", size=20, required=False, index=True)
key = fields.Char(size=20, required=False, index=True)

url = fields.Char(string="URL", compute="_compute_task_url")

Expand Down
6 changes: 3 additions & 3 deletions project_key/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ <h1 class="title">Project key</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/project/tree/14.0/project_key"><img alt="OCA/project" src="https://img.shields.io/badge/github-OCA%2Fproject-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_key"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/140/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/project/tree/14.0/project_key"><img alt="OCA/project" src="https://img.shields.io/badge/github-OCA%2Fproject-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_key"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/140/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module provides functionality to uniquely identify projects and tasks by simple <tt class="docutils literal">key</tt> field.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand Down Expand Up @@ -422,7 +422,7 @@ <h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/project/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/project/issues/new?body=module:%20project_key%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<a class="reference external" href="https://github.com/OCA/project/issues/new?body=module:%20project_key%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
Expand Down Expand Up @@ -453,7 +453,7 @@ <h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/project/tree/14.0/project_key">OCA/project</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/project/tree/15.0/project_key">OCA/project</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions project_key/tests/test_common.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright 2017 - 2018 Modoolar <[email protected]>
# License LGPLv3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html).

from odoo.tests.common import HttpCase, SavepointCase
from odoo.tests.common import HttpCase, TransactionCase


class TestMixin(object):
Expand Down Expand Up @@ -40,7 +40,7 @@ def get_project_url(self, project):
return self.get_record_url(project, project._name, self.project_action.id)


class TestCommon(SavepointCase, TestMixin):
class TestCommon(TransactionCase, TestMixin):
@classmethod
def setUpClass(cls):
super().setUpClass()
Expand Down
2 changes: 1 addition & 1 deletion project_key/views/project_key_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<field name="key" />
</field>
<xpath
expr="//t[@t-name='kanban-box']//field[@name='name']/parent::strong"
expr="//t[@t-name='kanban-box']//field[@name='name']/parent::s/parent::strong"
position="before"
>
<a t-att-href="record.url.raw_value">
Expand Down

0 comments on commit d066393

Please sign in to comment.