From 9e70c6147d934841be06504254d254a0ef731815 Mon Sep 17 00:00:00 2001 From: Patrick Wilson <36892066+patrickrwilson@users.noreply.github.com> Date: Thu, 18 Apr 2019 15:48:13 -0500 Subject: [PATCH 01/26] [ADD] project_status [FIX] Runbot Errors Fixed errors discovered by runbot [FIX] _description Fixed missing _description in project_status [FIX] Suggested Fixes More fixes from suggestions in comments [FIX] sequence change Slight change to status sequence code, added 'or 0' [UPD] readme [UPD] LINT Error Fixed LINT Error and updated view id's as suggested in review. [UPD] Update project_status.pot --- project_status/README.rst | 81 ++++++++++++++ project_status/__init__.py | 1 + project_status/__manifest__.py | 28 +++++ project_status/data/data.xml | 16 +++ project_status/i18n/project_status.pot | 112 ++++++++++++++++++++ project_status/models/__init__.py | 2 + project_status/models/project.py | 7 ++ project_status/models/project_status.py | 21 ++++ project_status/security/ir.model.access.csv | 3 + project_status/static/description/icon.png | Bin 0 -> 9455 bytes project_status/views/project.xml | 93 ++++++++++++++++ project_status/views/project_status.xml | 40 +++++++ 12 files changed, 404 insertions(+) create mode 100644 project_status/README.rst create mode 100644 project_status/__init__.py create mode 100644 project_status/__manifest__.py create mode 100644 project_status/data/data.xml create mode 100644 project_status/i18n/project_status.pot create mode 100644 project_status/models/__init__.py create mode 100644 project_status/models/project.py create mode 100644 project_status/models/project_status.py create mode 100644 project_status/security/ir.model.access.csv create mode 100644 project_status/static/description/icon.png create mode 100644 project_status/views/project.xml create mode 100644 project_status/views/project_status.xml diff --git a/project_status/README.rst b/project_status/README.rst new file mode 100644 index 0000000000..dd3831b2d5 --- /dev/null +++ b/project_status/README.rst @@ -0,0 +1,81 @@ +========================= +Project Status +========================= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fproject-lightgray.png?logo=github + :target: https://github.com/OCA/project/tree/12.0/project_status + :alt: OCA/project +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/project-12-0/project-12-0-project_status + :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/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module provides a project status on projects. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +#. Have Manager rights for Project group to create project statuses. +#. Go to *Project > Configuration > Project Statuses*. +#. When creating a project or editing it, select the status. + +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 + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Patrick Wilson + +Contributors +~~~~~~~~~~~~ + +* Patrick Wilson + +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/project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/project_status/__init__.py b/project_status/__init__.py new file mode 100644 index 0000000000..0650744f6b --- /dev/null +++ b/project_status/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/project_status/__manifest__.py b/project_status/__manifest__.py new file mode 100644 index 0000000000..cbd8e42a4e --- /dev/null +++ b/project_status/__manifest__.py @@ -0,0 +1,28 @@ +{ + 'name': "Project Status", + + 'summary': """ + Project Status""", + + 'author': "Patrick Wilson, Odoo Community Association (OCA)", + 'website': "https://github.com/OCA/project", + + 'category': 'Project Management', + 'version': '12.0.1.0.0', + 'license': 'AGPL-3', + + # any module necessary for this one to work correctly + 'depends': ['project'], + + # always loaded + 'data': [ + 'views/project_status.xml', + 'views/project.xml', + 'security/ir.model.access.csv', + 'data/data.xml', + ], + + 'application': False, + 'development_status': 'Beta', + 'maintainers': ['patrickrwilson'], +} diff --git a/project_status/data/data.xml b/project_status/data/data.xml new file mode 100644 index 0000000000..f5cf15acb7 --- /dev/null +++ b/project_status/data/data.xml @@ -0,0 +1,16 @@ + + + + Pending + Project is new and being built. Has not been started yet. + + + In Progress + Project is currently initiated and being worked. + + + Complete + Project has been completed. + + + diff --git a/project_status/i18n/project_status.pot b/project_status/i18n/project_status.pot new file mode 100644 index 0000000000..3afa162854 --- /dev/null +++ b/project_status/i18n/project_status.pot @@ -0,0 +1,112 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_status +# +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: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Closed" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_uid +msgid "Created by" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_date +msgid "Created on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__description +msgid "Description" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__display_name +msgid "Display Name" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__fold +msgid "Folded" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__id +msgid "ID" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__is_closed +msgid "Is Closed Status" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status____last_update +msgid "Last Modified on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_date +msgid "Last Updated on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__name +msgid "Name" +msgstr "" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Not Closed" +msgstr "" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +msgid "Project" +msgstr "" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__project_status +msgid "Project Status" +msgstr "" + +#. module: project_status +#: model:ir.actions.act_window,name:project_status.project_status_action +#: model:ir.ui.menu,name:project_status.project_status_menu +msgid "Project Statuses" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence +msgid "Sequence" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,help:project_status.field_project_status__is_closed +msgid "Specify if this is a closing status." +msgstr "" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Status" +msgstr "" + diff --git a/project_status/models/__init__.py b/project_status/models/__init__.py new file mode 100644 index 0000000000..2caae5936d --- /dev/null +++ b/project_status/models/__init__.py @@ -0,0 +1,2 @@ +from . import project +from . import project_status diff --git a/project_status/models/project.py b/project_status/models/project.py new file mode 100644 index 0000000000..0cf1bc7960 --- /dev/null +++ b/project_status/models/project.py @@ -0,0 +1,7 @@ +from odoo import models, fields + + +class Project(models.Model): + _inherit = 'project.project' + + project_status = fields.Many2one('project.status', string="Project Status") diff --git a/project_status/models/project_status.py b/project_status/models/project_status.py new file mode 100644 index 0000000000..1f9ca12653 --- /dev/null +++ b/project_status/models/project_status.py @@ -0,0 +1,21 @@ +from odoo import models, fields, api + + +class ProjectStatus(models.Model): + _name = 'project.status' + _order = 'status_sequence' + _description = 'Project Status' + + name = fields.Char(string="Name", + required=True) + description = fields.Char(string="Description") + status_sequence = fields.Integer(string="Sequence") + is_closed = fields.Boolean(string="Is Closed Status", + help="Specify if this is a closing status.") + fold = fields.Boolean(string="Folded") + + @api.model + def create(self, vals): + seq = self.env['ir.sequence'].next_by_code('project.status') or 0 + vals['status_sequence'] = seq + return super(ProjectStatus, self).create(vals) diff --git a/project_status/security/ir.model.access.csv b/project_status/security/ir.model.access.csv new file mode 100644 index 0000000000..006a38bc15 --- /dev/null +++ b/project_status/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +project_status_user,Project Status User,model_project_status,project.group_project_user,1,0,0,0 +project_status_manager,Project Status Manager,model_project_status,project.group_project_manager,1,1,1,1 diff --git a/project_status/static/description/icon.png b/project_status/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>WWCcEV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`sc9)M5N$*N|4;^t$+QP?#mov zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&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/project_status/views/project.xml b/project_status/views/project.xml new file mode 100644 index 0000000000..eac5f8c185 --- /dev/null +++ b/project_status/views/project.xml @@ -0,0 +1,93 @@ + + + + project.status.tree + project.project + + tree + child_ids + + + + + + + + + + project.status.form + project.project + + form + + + + + + + + + + + + project.status.simpleform + project.project + + form + + + + + + + + + + + + project.status.kanban + project.project + + + + +
+ + ( + + ) + +
+
+
+
+
+ + + + project.status.filter + project.project + + + + + + + + + + + + + +
diff --git a/project_status/views/project_status.xml b/project_status/views/project_status.xml new file mode 100644 index 0000000000..5d6be770d5 --- /dev/null +++ b/project_status/views/project_status.xml @@ -0,0 +1,40 @@ + + + + Project Status Sequence + project.status + 0 + 1 + + + + + Project Status List + project.status + + + + + + + + + + + + + + Project Statuses + project.status + tree + + + + + From 64c235de94c85eaa5e2eec3402817de695f6f796 Mon Sep 17 00:00:00 2001 From: Dmytro Katyukha Date: Tue, 6 Aug 2019 15:07:36 +0300 Subject: [PATCH 02/26] project_status UX: add default_group_by and group_expand [MIG] project_status: Migration to 14.0 --- project_status/__manifest__.py | 38 ++--- project_status/data/data.xml | 32 ++-- project_status/i18n/de.po | 145 ++++++++++++++++++ project_status/i18n/es.po | 144 ++++++++++++++++++ project_status/i18n/project_status.pot | 34 ++++- project_status/i18n/sl.po | 145 ++++++++++++++++++ project_status/models/project.py | 18 ++- project_status/models/project_status.py | 22 +-- project_status/views/project.xml | 186 ++++++++++++------------ project_status/views/project_status.xml | 51 +++---- 10 files changed, 646 insertions(+), 169 deletions(-) create mode 100644 project_status/i18n/de.po create mode 100644 project_status/i18n/es.po create mode 100644 project_status/i18n/sl.po diff --git a/project_status/__manifest__.py b/project_status/__manifest__.py index cbd8e42a4e..dd5622697d 100644 --- a/project_status/__manifest__.py +++ b/project_status/__manifest__.py @@ -1,28 +1,22 @@ { - 'name': "Project Status", - - 'summary': """ + "name": "Project Status", + "summary": """ Project Status""", - - 'author': "Patrick Wilson, Odoo Community Association (OCA)", - 'website': "https://github.com/OCA/project", - - 'category': 'Project Management', - 'version': '12.0.1.0.0', - 'license': 'AGPL-3', - + "author": "Patrick Wilson, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/project", + "category": "Project Management", + "version": "12.0.1.1.1", + "license": "AGPL-3", # any module necessary for this one to work correctly - 'depends': ['project'], - + "depends": ["project"], # always loaded - 'data': [ - 'views/project_status.xml', - 'views/project.xml', - 'security/ir.model.access.csv', - 'data/data.xml', + "data": [ + "views/project_status.xml", + "views/project.xml", + "security/ir.model.access.csv", + "data/data.xml", ], - - 'application': False, - 'development_status': 'Beta', - 'maintainers': ['patrickrwilson'], + "application": False, + "development_status": "Beta", + "maintainers": ["patrickrwilson"], } diff --git a/project_status/data/data.xml b/project_status/data/data.xml index f5cf15acb7..ad54f33420 100644 --- a/project_status/data/data.xml +++ b/project_status/data/data.xml @@ -1,16 +1,20 @@ - - - Pending - Project is new and being built. Has not been started yet. - - - In Progress - Project is currently initiated and being worked. - - - Complete - Project has been completed. - - + + + Pending + Project is new and being built. Has not been started yet. + + + In Progress + Project is currently initiated and being worked. + + + Complete + Project has been completed. + + diff --git a/project_status/i18n/de.po b/project_status/i18n/de.po new file mode 100644 index 0000000000..edfffa3190 --- /dev/null +++ b/project_status/i18n/de.po @@ -0,0 +1,145 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_status +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-12-13 18:05+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.9.1\n" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Closed" +msgstr "Beendet" + +#. module: project_status +#: model:project.status,name:project_status.project_status_complete +msgid "Complete" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_uid +msgid "Created by" +msgstr "Erstellt von" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_date +msgid "Created on" +msgstr "Erstellt am" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__description +msgid "Description" +msgstr "Beschreibung" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__display_name +msgid "Display Name" +msgstr "Anzeigename" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__fold +msgid "Folded" +msgstr "Eingeklappt" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__id +msgid "ID" +msgstr "ID" + +#. module: project_status +#: model:project.status,name:project_status.project_status_in_progress +msgid "In Progress" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__is_closed +msgid "Is Closed Status" +msgstr "Status gilt als abgeschlossen" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status____last_update +msgid "Last Modified on" +msgstr "Zuletzt geändert am" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_uid +msgid "Last Updated by" +msgstr "Zuletzt aktualisiert von" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_date +msgid "Last Updated on" +msgstr "Zuletzt aktualisiert am" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__name +msgid "Name" +msgstr "Bezeichnung" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Not Closed" +msgstr "Nicht beendet" + +#. module: project_status +#: model:project.status,name:project_status.project_status_pending +msgid "Pending" +msgstr "" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__project_status +msgid "Project Status" +msgstr "Projektstatus" + +#. module: project_status +#: model:ir.actions.act_window,name:project_status.project_status_action +#: model:ir.ui.menu,name:project_status.project_status_menu +msgid "Project Statuses" +msgstr "Projektstatus" + +#. module: project_status +#: model:project.status,description:project_status.project_status_complete +msgid "Project has been completed." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_in_progress +msgid "Project is currently initiated and being worked." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_pending +msgid "Project is new and being built. Has not been started yet." +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence +msgid "Sequence" +msgstr "Sequenz" + +#. module: project_status +#: model:ir.model.fields,help:project_status.field_project_status__is_closed +msgid "Specify if this is a closing status." +msgstr "" +"Wenn der Haken gesetzt ist, wird dieser Status als \"beendet\" betrachtet." + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Status" +msgstr "Status" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +msgid "WBS element" +msgstr "" diff --git a/project_status/i18n/es.po b/project_status/i18n/es.po new file mode 100644 index 0000000000..6ceab35166 --- /dev/null +++ b/project_status/i18n/es.po @@ -0,0 +1,144 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_status +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-12-02 19:04+0000\n" +"Last-Translator: Ignacio José Alés López \n" +"Language-Team: none\n" +"Language: es\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.9.1\n" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Closed" +msgstr "Cerrado" + +#. module: project_status +#: model:project.status,name:project_status.project_status_complete +msgid "Complete" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__description +msgid "Description" +msgstr "Descripción" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__display_name +msgid "Display Name" +msgstr "Nombre a mostrar" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__fold +msgid "Folded" +msgstr "Replegado" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__id +msgid "ID" +msgstr "" + +#. module: project_status +#: model:project.status,name:project_status.project_status_in_progress +msgid "In Progress" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__is_closed +msgid "Is Closed Status" +msgstr "Estado cerrado" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status____last_update +msgid "Last Modified on" +msgstr "Última modificación en" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_uid +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_date +msgid "Last Updated on" +msgstr "Última actualización el" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__name +msgid "Name" +msgstr "Nombre" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Not Closed" +msgstr "No cerrado" + +#. module: project_status +#: model:project.status,name:project_status.project_status_pending +msgid "Pending" +msgstr "" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__project_status +msgid "Project Status" +msgstr "Estado del proyecto" + +#. module: project_status +#: model:ir.actions.act_window,name:project_status.project_status_action +#: model:ir.ui.menu,name:project_status.project_status_menu +msgid "Project Statuses" +msgstr "Estados del proyecto" + +#. module: project_status +#: model:project.status,description:project_status.project_status_complete +msgid "Project has been completed." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_in_progress +msgid "Project is currently initiated and being worked." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_pending +msgid "Project is new and being built. Has not been started yet." +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence +msgid "Sequence" +msgstr "Secuencia" + +#. module: project_status +#: model:ir.model.fields,help:project_status.field_project_status__is_closed +msgid "Specify if this is a closing status." +msgstr "Especifica si el estado es cerrado." + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Status" +msgstr "Estado" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +msgid "WBS element" +msgstr "" diff --git a/project_status/i18n/project_status.pot b/project_status/i18n/project_status.pot index 3afa162854..b7a67ebf41 100644 --- a/project_status/i18n/project_status.pot +++ b/project_status/i18n/project_status.pot @@ -18,6 +18,11 @@ msgstr "" msgid "Closed" msgstr "" +#. module: project_status +#: model:project.status,name:project_status.project_status_complete +msgid "Complete" +msgstr "" + #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__create_uid msgid "Created by" @@ -48,6 +53,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: project_status +#: model:project.status,name:project_status.project_status_in_progress +msgid "In Progress" +msgstr "" + #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__is_closed msgid "Is Closed Status" @@ -79,8 +89,8 @@ msgid "Not Closed" msgstr "" #. module: project_status -#: model:ir.model,name:project_status.model_project_project -msgid "Project" +#: model:project.status,name:project_status.project_status_pending +msgid "Pending" msgstr "" #. module: project_status @@ -95,6 +105,21 @@ msgstr "" msgid "Project Statuses" msgstr "" +#. module: project_status +#: model:project.status,description:project_status.project_status_complete +msgid "Project has been completed." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_in_progress +msgid "Project is currently initiated and being worked." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_pending +msgid "Project is new and being built. Has not been started yet." +msgstr "" + #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence msgid "Sequence" @@ -110,3 +135,8 @@ msgstr "" msgid "Status" msgstr "" +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +msgid "WBS element" +msgstr "" + diff --git a/project_status/i18n/sl.po b/project_status/i18n/sl.po new file mode 100644 index 0000000000..c290834c65 --- /dev/null +++ b/project_status/i18n/sl.po @@ -0,0 +1,145 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_status +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-03-31 10:14+0000\n" +"Last-Translator: Matjaz Mozetic \n" +"Language-Team: none\n" +"Language: sl\n" +"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" +"X-Generator: Weblate 3.10\n" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Closed" +msgstr "Zaključeno" + +#. module: project_status +#: model:project.status,name:project_status.project_status_complete +msgid "Complete" +msgstr "Opravljeno" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_uid +msgid "Created by" +msgstr "Ustvaril" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_date +msgid "Created on" +msgstr "Ustvarjeno" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__description +msgid "Description" +msgstr "Opis" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__display_name +msgid "Display Name" +msgstr "Prikazani naziv" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__fold +msgid "Folded" +msgstr "Prepognjeno" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__id +msgid "ID" +msgstr "ID" + +#. module: project_status +#: model:project.status,name:project_status.project_status_in_progress +msgid "In Progress" +msgstr "V teku" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__is_closed +msgid "Is Closed Status" +msgstr "V stanju zaključeno" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status____last_update +msgid "Last Modified on" +msgstr "Zadnjič spremenjeno" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_uid +msgid "Last Updated by" +msgstr "Zadnji posodobil" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_date +msgid "Last Updated on" +msgstr "Zadnjič posodobljeno" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__name +msgid "Name" +msgstr "Naziv" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Not Closed" +msgstr "Nezaključeno" + +#. module: project_status +#: model:project.status,name:project_status.project_status_pending +msgid "Pending" +msgstr "Na čakanju" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__project_status +msgid "Project Status" +msgstr "Projektni status" + +#. module: project_status +#: model:ir.actions.act_window,name:project_status.project_status_action +#: model:ir.ui.menu,name:project_status.project_status_menu +msgid "Project Statuses" +msgstr "Projektni statusi" + +#. module: project_status +#: model:project.status,description:project_status.project_status_complete +msgid "Project has been completed." +msgstr "Projekt je dokončan." + +#. module: project_status +#: model:project.status,description:project_status.project_status_in_progress +msgid "Project is currently initiated and being worked." +msgstr "Projekt je zagnan in se dela na njem." + +#. module: project_status +#: model:project.status,description:project_status.project_status_pending +msgid "Project is new and being built. Has not been started yet." +msgstr "Projekt je nov in se snuje. Ni še zagnan." + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence +msgid "Sequence" +msgstr "Zaporedje" + +#. module: project_status +#: model:ir.model.fields,help:project_status.field_project_status__is_closed +msgid "Specify if this is a closing status." +msgstr "Določite, če je to zaključni status." + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Status" +msgstr "Status" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +msgid "WBS element" +msgstr "Projektni člen" diff --git a/project_status/models/project.py b/project_status/models/project.py index 0cf1bc7960..4fa77b73ac 100644 --- a/project_status/models/project.py +++ b/project_status/models/project.py @@ -1,7 +1,19 @@ -from odoo import models, fields +from odoo import SUPERUSER_ID, api, fields, models class Project(models.Model): - _inherit = 'project.project' + _inherit = "project.project" - project_status = fields.Many2one('project.status', string="Project Status") + @api.model + def _read_group_status_ids(self, statuses, domain, order): + statuse_ids = statuses._search([], order=order, access_rights_uid=SUPERUSER_ID) + return statuses.browse(statuse_ids) + + project_status = fields.Many2one( + "project.status", + string="Project Status", + group_expand="_read_group_status_ids", + copy=False, + ondelete="restrict", + index=True, + ) diff --git a/project_status/models/project_status.py b/project_status/models/project_status.py index 1f9ca12653..8636913064 100644 --- a/project_status/models/project_status.py +++ b/project_status/models/project_status.py @@ -1,21 +1,21 @@ -from odoo import models, fields, api +from odoo import api, fields, models class ProjectStatus(models.Model): - _name = 'project.status' - _order = 'status_sequence' - _description = 'Project Status' + _name = "project.status" + _order = "status_sequence" + _description = "Project Status" - name = fields.Char(string="Name", - required=True) - description = fields.Char(string="Description") + name = fields.Char(string="Name", required=True, translate=True) + description = fields.Char(string="Description", translate=True) status_sequence = fields.Integer(string="Sequence") - is_closed = fields.Boolean(string="Is Closed Status", - help="Specify if this is a closing status.") + is_closed = fields.Boolean( + string="Is Closed Status", help="Specify if this is a closing status." + ) fold = fields.Boolean(string="Folded") @api.model def create(self, vals): - seq = self.env['ir.sequence'].next_by_code('project.status') or 0 - vals['status_sequence'] = seq + seq = self.env["ir.sequence"].next_by_code("project.status") or 0 + vals["status_sequence"] = seq return super(ProjectStatus, self).create(vals) diff --git a/project_status/views/project.xml b/project_status/views/project.xml index eac5f8c185..1bb8e790a6 100644 --- a/project_status/views/project.xml +++ b/project_status/views/project.xml @@ -1,93 +1,99 @@ - - - project.status.tree - project.project - - tree - child_ids - - - - - - - - - - project.status.form - project.project - - form - - - - - - - - - - - - project.status.simpleform - project.project - - form - - - - + + + project.status.tree + project.project + + tree + child_ids + + + + - - - - - - - project.status.kanban - project.project - - - - -
- - ( - - ) - -
-
-
-
-
- - - - project.status.filter - project.project - - - - - - - - - - - - - + + + + project.status.form + project.project + + form + + + + + + + + + + + project.status.simpleform + project.project + + form + + + + + + + + + + + project.status.kanban + project.project + + + + + project_status + + +
+ + ( + + + + ) + +
+
+
+
+
+ + + project.status.filter + project.project + + + + + + + + + + + +
diff --git a/project_status/views/project_status.xml b/project_status/views/project_status.xml index 5d6be770d5..a4e6178185 100644 --- a/project_status/views/project_status.xml +++ b/project_status/views/project_status.xml @@ -1,40 +1,37 @@ - Project Status Sequence - project.status - 0 - 1 + Project Status Sequence + project.status + 0 + 1 - - Project Status List - project.status - - - - - - - - - + Project Status List + project.status + + + + + + + + + - - Project Statuses - project.status - tree + Project Statuses + project.status + tree - + name="Project Statuses" + id="project_status_menu" + parent="project.menu_project_config" + sequence="15" + action="project_status_action" + /> From 74bc1ee0db4f898b0c9eb9eaa3aea54043f9137d Mon Sep 17 00:00:00 2001 From: Bhavesh Odedra Date: Mon, 6 Apr 2020 13:04:02 +0530 Subject: [PATCH 03/26] [13.0][MIG] project_status --- project_status/__manifest__.py | 4 +--- project_status/readme/CONTRIBUTORS.rst | 2 ++ project_status/readme/DESCRIPTION.rst | 1 + project_status/readme/USAGE.rst | 5 +++++ 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 project_status/readme/CONTRIBUTORS.rst create mode 100644 project_status/readme/DESCRIPTION.rst create mode 100644 project_status/readme/USAGE.rst diff --git a/project_status/__manifest__.py b/project_status/__manifest__.py index dd5622697d..e67e6ed16a 100644 --- a/project_status/__manifest__.py +++ b/project_status/__manifest__.py @@ -5,11 +5,9 @@ "author": "Patrick Wilson, Odoo Community Association (OCA)", "website": "https://github.com/OCA/project", "category": "Project Management", - "version": "12.0.1.1.1", + "version": "13.0.1.0.0", "license": "AGPL-3", - # any module necessary for this one to work correctly "depends": ["project"], - # always loaded "data": [ "views/project_status.xml", "views/project.xml", diff --git a/project_status/readme/CONTRIBUTORS.rst b/project_status/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..4b91669fcd --- /dev/null +++ b/project_status/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Patrick Wilson +* Bhavesh Odedra diff --git a/project_status/readme/DESCRIPTION.rst b/project_status/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..ebeb076b11 --- /dev/null +++ b/project_status/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module provides a project status on projects. diff --git a/project_status/readme/USAGE.rst b/project_status/readme/USAGE.rst new file mode 100644 index 0000000000..430160891c --- /dev/null +++ b/project_status/readme/USAGE.rst @@ -0,0 +1,5 @@ +To use this module, you need to: + +#. Have Manager rights for Project group to create project statuses. +#. Go to *Project > Configuration > Project Statuses*. +#. When creating a project or editing it, select the status From ce89ba7d33ac53161d60a97ea8ca9fd2f7f835da Mon Sep 17 00:00:00 2001 From: oca-travis Date: Sun, 17 May 2020 11:32:31 +0000 Subject: [PATCH 04/26] [UPD] Update project_status.pot --- project_status/i18n/project_status.pot | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/project_status/i18n/project_status.pot b/project_status/i18n/project_status.pot index b7a67ebf41..df9411bbd6 100644 --- a/project_status/i18n/project_status.pot +++ b/project_status/i18n/project_status.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * project_status +# * project_status # 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" @@ -93,6 +93,11 @@ msgstr "" msgid "Pending" msgstr "" +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +msgid "Project" +msgstr "" + #. module: project_status #: model:ir.model,name:project_status.model_project_status #: model:ir.model.fields,field_description:project_status.field_project_project__project_status @@ -134,9 +139,3 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Status" msgstr "" - -#. module: project_status -#: model:ir.model,name:project_status.model_project_project -msgid "WBS element" -msgstr "" - From 10ae23c8bfef7e38e61268279edc00f46ddbda27 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 17 May 2020 11:38:48 +0000 Subject: [PATCH 05/26] [UPD] README.rst --- project_status/README.rst | 26 +- project_status/static/description/index.html | 432 +++++++++++++++++++ 2 files changed, 450 insertions(+), 8 deletions(-) create mode 100644 project_status/static/description/index.html diff --git a/project_status/README.rst b/project_status/README.rst index dd3831b2d5..63a0a78c8b 100644 --- a/project_status/README.rst +++ b/project_status/README.rst @@ -1,6 +1,6 @@ -========================= +============== Project Status -========================= +============== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! @@ -14,16 +14,16 @@ Project Status :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 - :target: https://github.com/OCA/project/tree/12.0/project_status + :target: https://github.com/OCA/project/tree/13.0/project_status :alt: OCA/project .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/project-12-0/project-12-0-project_status + :target: https://translation.odoo-community.org/projects/project-13-0/project-13-0-project_status :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/12.0 + :target: https://runbot.odoo-community.org/runbot/140/13.0 :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module provides a project status on projects. @@ -39,7 +39,7 @@ To use this module, you need to: #. Have Manager rights for Project group to create project statuses. #. Go to *Project > Configuration > Project Statuses*. -#. When creating a project or editing it, select the status. +#. When creating a project or editing it, select the status Bug Tracker =========== @@ -47,6 +47,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 `_. Do not contact contributors directly about support or help with technical issues. @@ -62,6 +63,7 @@ Contributors ~~~~~~~~~~~~ * Patrick Wilson +* Bhavesh Odedra Maintainers ~~~~~~~~~~~ @@ -76,6 +78,14 @@ 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 on GitHub. +.. |maintainer-patrickrwilson| image:: https://github.com/patrickrwilson.png?size=40px + :target: https://github.com/patrickrwilson + :alt: patrickrwilson + +Current `maintainer `__: + +|maintainer-patrickrwilson| + +This module is part of the `OCA/project `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/project_status/static/description/index.html b/project_status/static/description/index.html new file mode 100644 index 0000000000..125993e1e2 --- /dev/null +++ b/project_status/static/description/index.html @@ -0,0 +1,432 @@ + + + + + + +Project Status + + + +
+

Project Status

+ + +

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

+

This module provides a project status on projects.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  1. Have Manager rights for Project group to create project statuses.
  2. +
  3. Go to Project > Configuration > Project Statuses.
  4. +
  5. When creating a project or editing it, select the status
  6. +
+
+
+

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

+
    +
  • Patrick Wilson
  • +
+
+ +
+

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.

+

Current maintainer:

+

patrickrwilson

+

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

+

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

+
+
+
+ + From a10f90ff75dcb6885a6e6dce1e00e943fcc5148c Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Tue, 26 May 2020 10:44:35 +0000 Subject: [PATCH 06/26] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: project-13.0/project-13.0-project_status Translate-URL: https://translation.odoo-community.org/projects/project-13-0/project-13-0-project_status/ --- project_status/i18n/de.po | 12 +++++++----- project_status/i18n/es.po | 12 +++++++----- project_status/i18n/sl.po | 19 ++++++++++++------- 3 files changed, 26 insertions(+), 17 deletions(-) diff --git a/project_status/i18n/de.po b/project_status/i18n/de.po index edfffa3190..357124ec01 100644 --- a/project_status/i18n/de.po +++ b/project_status/i18n/de.po @@ -96,6 +96,13 @@ msgstr "Nicht beendet" msgid "Pending" msgstr "" +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +#, fuzzy +#| msgid "Project Status" +msgid "Project" +msgstr "Projektstatus" + #. module: project_status #: model:ir.model,name:project_status.model_project_status #: model:ir.model.fields,field_description:project_status.field_project_project__project_status @@ -138,8 +145,3 @@ msgstr "" #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Status" msgstr "Status" - -#. module: project_status -#: model:ir.model,name:project_status.model_project_project -msgid "WBS element" -msgstr "" diff --git a/project_status/i18n/es.po b/project_status/i18n/es.po index 6ceab35166..cfda7c47bc 100644 --- a/project_status/i18n/es.po +++ b/project_status/i18n/es.po @@ -96,6 +96,13 @@ msgstr "No cerrado" msgid "Pending" msgstr "" +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +#, fuzzy +#| msgid "Project Status" +msgid "Project" +msgstr "Estado del proyecto" + #. module: project_status #: model:ir.model,name:project_status.model_project_status #: model:ir.model.fields,field_description:project_status.field_project_project__project_status @@ -137,8 +144,3 @@ msgstr "Especifica si el estado es cerrado." #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Status" msgstr "Estado" - -#. module: project_status -#: model:ir.model,name:project_status.model_project_project -msgid "WBS element" -msgstr "" diff --git a/project_status/i18n/sl.po b/project_status/i18n/sl.po index c290834c65..7bfa5d20c0 100644 --- a/project_status/i18n/sl.po +++ b/project_status/i18n/sl.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * project_status +# * project_status # msgid "" msgstr "" @@ -13,8 +13,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" "X-Generator: Weblate 3.10\n" #. module: project_status @@ -97,6 +97,13 @@ msgstr "Nezaključeno" msgid "Pending" msgstr "Na čakanju" +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +#, fuzzy +#| msgid "Project Status" +msgid "Project" +msgstr "Projektni status" + #. module: project_status #: model:ir.model,name:project_status.model_project_status #: model:ir.model.fields,field_description:project_status.field_project_project__project_status @@ -139,7 +146,5 @@ msgstr "Določite, če je to zaključni status." msgid "Status" msgstr "Status" -#. module: project_status -#: model:ir.model,name:project_status.model_project_project -msgid "WBS element" -msgstr "Projektni člen" +#~ msgid "WBS element" +#~ msgstr "Projektni člen" From 919562eedbcf1168f93ec8243d700613de569d53 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sun, 16 Aug 2020 11:35:41 +0000 Subject: [PATCH 07/26] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: project-13.0/project-13.0-project_status Translate-URL: https://translation.odoo-community.org/projects/project-13-0/project-13-0-project_status/ --- project_status/i18n/de.po | 1 - project_status/i18n/es.po | 1 - project_status/i18n/sl.po | 1 - 3 files changed, 3 deletions(-) diff --git a/project_status/i18n/de.po b/project_status/i18n/de.po index 357124ec01..8c2a29ce46 100644 --- a/project_status/i18n/de.po +++ b/project_status/i18n/de.po @@ -99,7 +99,6 @@ msgstr "" #. module: project_status #: model:ir.model,name:project_status.model_project_project #, fuzzy -#| msgid "Project Status" msgid "Project" msgstr "Projektstatus" diff --git a/project_status/i18n/es.po b/project_status/i18n/es.po index cfda7c47bc..15471cda23 100644 --- a/project_status/i18n/es.po +++ b/project_status/i18n/es.po @@ -99,7 +99,6 @@ msgstr "" #. module: project_status #: model:ir.model,name:project_status.model_project_project #, fuzzy -#| msgid "Project Status" msgid "Project" msgstr "Estado del proyecto" diff --git a/project_status/i18n/sl.po b/project_status/i18n/sl.po index 7bfa5d20c0..9de8d32c1c 100644 --- a/project_status/i18n/sl.po +++ b/project_status/i18n/sl.po @@ -100,7 +100,6 @@ msgstr "Na čakanju" #. module: project_status #: model:ir.model,name:project_status.model_project_project #, fuzzy -#| msgid "Project Status" msgid "Project" msgstr "Projektni status" From cbb7d92be29d38b5f04c8f2e509d59e7a144c7f8 Mon Sep 17 00:00:00 2001 From: Yoshiro009 Date: Tue, 10 Nov 2020 15:51:39 +0700 Subject: [PATCH 08/26] [14.0][MIG]Project_status --- project_status/__manifest__.py | 2 +- project_status/tests/__init__.py | 1 + project_status/tests/test_status.py | 30 +++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 project_status/tests/__init__.py create mode 100644 project_status/tests/test_status.py diff --git a/project_status/__manifest__.py b/project_status/__manifest__.py index e67e6ed16a..bb5c1d65a0 100644 --- a/project_status/__manifest__.py +++ b/project_status/__manifest__.py @@ -5,7 +5,7 @@ "author": "Patrick Wilson, Odoo Community Association (OCA)", "website": "https://github.com/OCA/project", "category": "Project Management", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "license": "AGPL-3", "depends": ["project"], "data": [ diff --git a/project_status/tests/__init__.py b/project_status/tests/__init__.py new file mode 100644 index 0000000000..d8b06cd3af --- /dev/null +++ b/project_status/tests/__init__.py @@ -0,0 +1 @@ +from . import test_status diff --git a/project_status/tests/test_status.py b/project_status/tests/test_status.py new file mode 100644 index 0000000000..3b3a07b4de --- /dev/null +++ b/project_status/tests/test_status.py @@ -0,0 +1,30 @@ +from odoo.tests.common import SavepointCase + + +class TestProjectStatus(SavepointCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.ProjectStatus = cls.env["project.status"] + cls.status = cls.ProjectStatus.create( + { + "name": "New Status", + } + ) + + def _create_project(self): + project = self.env["project.project"].create( + { + "name": "Project 1", + "project_status": self.status.id, + } + ) + return project + + def test_01_project_status(self): + project = self._create_project() + self.assertEqual(project.project_status.id, self.status.id) + statuses = project._read_group_status_ids( + project.project_status, [], "status_sequence" + ) + self.assertTrue(len(statuses) >= 1) From a46b24e099752e9fb746b06ca892c055a9086bdf Mon Sep 17 00:00:00 2001 From: oca-travis Date: Mon, 25 Jan 2021 07:44:50 +0000 Subject: [PATCH 09/26] [UPD] Update project_status.pot --- project_status/i18n/project_status.pot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/project_status/i18n/project_status.pot b/project_status/i18n/project_status.pot index df9411bbd6..41da58bd60 100644 --- a/project_status/i18n/project_status.pot +++ b/project_status/i18n/project_status.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" @@ -39,6 +39,7 @@ msgid "Description" msgstr "" #. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__display_name #: model:ir.model.fields,field_description:project_status.field_project_status__display_name msgid "Display Name" msgstr "" @@ -49,6 +50,7 @@ msgid "Folded" msgstr "" #. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__id #: model:ir.model.fields,field_description:project_status.field_project_status__id msgid "ID" msgstr "" @@ -64,6 +66,7 @@ msgid "Is Closed Status" msgstr "" #. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project____last_update #: model:ir.model.fields,field_description:project_status.field_project_status____last_update msgid "Last Modified on" msgstr "" From d6ce9a1e44fd60c2b4ae52facddec206ea416d12 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 25 Jan 2021 07:50:20 +0000 Subject: [PATCH 10/26] [UPD] README.rst --- project_status/README.rst | 10 +++++----- project_status/static/description/index.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/project_status/README.rst b/project_status/README.rst index 63a0a78c8b..0de8caa22e 100644 --- a/project_status/README.rst +++ b/project_status/README.rst @@ -14,13 +14,13 @@ Project Status :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 - :target: https://github.com/OCA/project/tree/13.0/project_status + :target: https://github.com/OCA/project/tree/14.0/project_status :alt: OCA/project .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/project-13-0/project-13-0-project_status + :target: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_status :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/13.0 + :target: https://runbot.odoo-community.org/runbot/140/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -47,7 +47,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. @@ -86,6 +86,6 @@ Current `maintainer `__: |maintainer-patrickrwilson| -This module is part of the `OCA/project `_ project on GitHub. +This module is part of the `OCA/project `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/project_status/static/description/index.html b/project_status/static/description/index.html index 125993e1e2..417e1ef790 100644 --- a/project_status/static/description/index.html +++ b/project_status/static/description/index.html @@ -367,7 +367,7 @@

Project Status

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

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

+

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

This module provides a project status on projects.

Table of contents

@@ -396,7 +396,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.

@@ -423,7 +423,7 @@

Maintainers

promote its widespread use.

Current maintainer:

patrickrwilson

-

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

+

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

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

From 3fabf7677f1ef421722c7001ac9a3beb6995abde Mon Sep 17 00:00:00 2001 From: Ignacio Buioli Date: Thu, 1 Apr 2021 01:43:40 +0000 Subject: [PATCH 11/26] Added translation using Weblate (Spanish (Argentina)) --- project_status/i18n/es_AR.po | 145 +++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 project_status/i18n/es_AR.po diff --git a/project_status/i18n/es_AR.po b/project_status/i18n/es_AR.po new file mode 100644 index 0000000000..2ec271e575 --- /dev/null +++ b/project_status/i18n/es_AR.po @@ -0,0 +1,145 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_status +# +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: es_AR\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: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Closed" +msgstr "" + +#. module: project_status +#: model:project.status,name:project_status.project_status_complete +msgid "Complete" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_uid +msgid "Created by" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_date +msgid "Created on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__description +msgid "Description" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__display_name +#: model:ir.model.fields,field_description:project_status.field_project_status__display_name +msgid "Display Name" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__fold +msgid "Folded" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__id +#: model:ir.model.fields,field_description:project_status.field_project_status__id +msgid "ID" +msgstr "" + +#. module: project_status +#: model:project.status,name:project_status.project_status_in_progress +msgid "In Progress" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__is_closed +msgid "Is Closed Status" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project____last_update +#: model:ir.model.fields,field_description:project_status.field_project_status____last_update +msgid "Last Modified on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_date +msgid "Last Updated on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__name +msgid "Name" +msgstr "" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Not Closed" +msgstr "" + +#. module: project_status +#: model:project.status,name:project_status.project_status_pending +msgid "Pending" +msgstr "" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +msgid "Project" +msgstr "" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__project_status +msgid "Project Status" +msgstr "" + +#. module: project_status +#: model:ir.actions.act_window,name:project_status.project_status_action +#: model:ir.ui.menu,name:project_status.project_status_menu +msgid "Project Statuses" +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_complete +msgid "Project has been completed." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_in_progress +msgid "Project is currently initiated and being worked." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_pending +msgid "Project is new and being built. Has not been started yet." +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence +msgid "Sequence" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,help:project_status.field_project_status__is_closed +msgid "Specify if this is a closing status." +msgstr "" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Status" +msgstr "" From 75d860e462a0326968c940bba8368737a97c5dff Mon Sep 17 00:00:00 2001 From: Ignacio Buioli Date: Thu, 1 Apr 2021 17:00:38 +0000 Subject: [PATCH 12/26] Translated using Weblate (Spanish (Argentina)) Currently translated at 100.0% (25 of 25 strings) Translation: project-14.0/project-14.0-project_status Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_status/es_AR/ --- project_status/i18n/es_AR.po | 54 +++++++++++++++++++----------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/project_status/i18n/es_AR.po b/project_status/i18n/es_AR.po index 2ec271e575..b82cc6c8fa 100644 --- a/project_status/i18n/es_AR.po +++ b/project_status/i18n/es_AR.po @@ -6,140 +6,142 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2021-04-01 19:46+0000\n" +"Last-Translator: Ignacio Buioli \n" "Language-Team: none\n" "Language: es_AR\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: project_status #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Closed" -msgstr "" +msgstr "Cerrado" #. module: project_status #: model:project.status,name:project_status.project_status_complete msgid "Complete" -msgstr "" +msgstr "Completo" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__create_uid msgid "Created by" -msgstr "" +msgstr "Creado por" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__create_date msgid "Created on" -msgstr "" +msgstr "Creado en" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__description msgid "Description" -msgstr "" +msgstr "Descripción" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_project__display_name #: model:ir.model.fields,field_description:project_status.field_project_status__display_name msgid "Display Name" -msgstr "" +msgstr "Mostrar Nombre" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__fold msgid "Folded" -msgstr "" +msgstr "Plegado" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_project__id #: model:ir.model.fields,field_description:project_status.field_project_status__id msgid "ID" -msgstr "" +msgstr "ID" #. module: project_status #: model:project.status,name:project_status.project_status_in_progress msgid "In Progress" -msgstr "" +msgstr "En Progreso" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__is_closed msgid "Is Closed Status" -msgstr "" +msgstr "Es Estado Cerrado" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_project____last_update #: model:ir.model.fields,field_description:project_status.field_project_status____last_update msgid "Last Modified on" -msgstr "" +msgstr "Última Modificación el" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Última actualización realizada por" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__write_date msgid "Last Updated on" -msgstr "" +msgstr "Última actualización el" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__name msgid "Name" -msgstr "" +msgstr "Nombre" #. module: project_status #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Not Closed" -msgstr "" +msgstr "No Cerrado" #. module: project_status #: model:project.status,name:project_status.project_status_pending msgid "Pending" -msgstr "" +msgstr "Pendiente" #. module: project_status #: model:ir.model,name:project_status.model_project_project msgid "Project" -msgstr "" +msgstr "Proyecto" #. module: project_status #: model:ir.model,name:project_status.model_project_status #: model:ir.model.fields,field_description:project_status.field_project_project__project_status msgid "Project Status" -msgstr "" +msgstr "Estado del Proyecto" #. module: project_status #: model:ir.actions.act_window,name:project_status.project_status_action #: model:ir.ui.menu,name:project_status.project_status_menu msgid "Project Statuses" -msgstr "" +msgstr "Estados del Proyecto" #. module: project_status #: model:project.status,description:project_status.project_status_complete msgid "Project has been completed." -msgstr "" +msgstr "El Proyecto ha sido completado." #. module: project_status #: model:project.status,description:project_status.project_status_in_progress msgid "Project is currently initiated and being worked." -msgstr "" +msgstr "El proyecto está actualmente iniciado y en proceso." #. module: project_status #: model:project.status,description:project_status.project_status_pending msgid "Project is new and being built. Has not been started yet." -msgstr "" +msgstr "El proyecto es nuevo y se está construyendo. Aún no se ha iniciado." #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence msgid "Sequence" -msgstr "" +msgstr "Secuencia" #. module: project_status #: model:ir.model.fields,help:project_status.field_project_status__is_closed msgid "Specify if this is a closing status." -msgstr "" +msgstr "Especifica si este es un estado de cierre." #. module: project_status #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Status" -msgstr "" +msgstr "Estado" From ce1123f2de3e6ee9907d5d8f62f6c5fae020ae2a Mon Sep 17 00:00:00 2001 From: Yves Le Doeuff Date: Sun, 4 Apr 2021 14:09:35 +0000 Subject: [PATCH 13/26] Added translation using Weblate (French) --- project_status/i18n/fr.po | 145 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 project_status/i18n/fr.po diff --git a/project_status/i18n/fr.po b/project_status/i18n/fr.po new file mode 100644 index 0000000000..0cdfe3a711 --- /dev/null +++ b/project_status/i18n/fr.po @@ -0,0 +1,145 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_status +# +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: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Closed" +msgstr "" + +#. module: project_status +#: model:project.status,name:project_status.project_status_complete +msgid "Complete" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_uid +msgid "Created by" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_date +msgid "Created on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__description +msgid "Description" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__display_name +#: model:ir.model.fields,field_description:project_status.field_project_status__display_name +msgid "Display Name" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__fold +msgid "Folded" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__id +#: model:ir.model.fields,field_description:project_status.field_project_status__id +msgid "ID" +msgstr "" + +#. module: project_status +#: model:project.status,name:project_status.project_status_in_progress +msgid "In Progress" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__is_closed +msgid "Is Closed Status" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project____last_update +#: model:ir.model.fields,field_description:project_status.field_project_status____last_update +msgid "Last Modified on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_date +msgid "Last Updated on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__name +msgid "Name" +msgstr "" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Not Closed" +msgstr "" + +#. module: project_status +#: model:project.status,name:project_status.project_status_pending +msgid "Pending" +msgstr "" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +msgid "Project" +msgstr "" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__project_status +msgid "Project Status" +msgstr "" + +#. module: project_status +#: model:ir.actions.act_window,name:project_status.project_status_action +#: model:ir.ui.menu,name:project_status.project_status_menu +msgid "Project Statuses" +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_complete +msgid "Project has been completed." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_in_progress +msgid "Project is currently initiated and being worked." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_pending +msgid "Project is new and being built. Has not been started yet." +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence +msgid "Sequence" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,help:project_status.field_project_status__is_closed +msgid "Specify if this is a closing status." +msgstr "" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Status" +msgstr "" From f715720983563020261f50c484df089bebd4a426 Mon Sep 17 00:00:00 2001 From: Yves Le Doeuff Date: Sun, 4 Apr 2021 14:23:19 +0000 Subject: [PATCH 14/26] Translated using Weblate (French) Currently translated at 88.0% (22 of 25 strings) Translation: project-14.0/project-14.0-project_status Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_status/fr/ --- project_status/i18n/fr.po | 48 +++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/project_status/i18n/fr.po b/project_status/i18n/fr.po index 0cdfe3a711..32458d2804 100644 --- a/project_status/i18n/fr.po +++ b/project_status/i18n/fr.po @@ -6,33 +6,35 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2021-04-04 16:46+0000\n" +"Last-Translator: Yves Le Doeuff \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: project_status #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Closed" -msgstr "" +msgstr "Fermé" #. module: project_status #: model:project.status,name:project_status.project_status_complete msgid "Complete" -msgstr "" +msgstr "Terminé" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__create_uid msgid "Created by" -msgstr "" +msgstr "Créé par" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__create_date msgid "Created on" -msgstr "" +msgstr "Créé le" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__description @@ -43,12 +45,12 @@ msgstr "" #: model:ir.model.fields,field_description:project_status.field_project_project__display_name #: model:ir.model.fields,field_description:project_status.field_project_status__display_name msgid "Display Name" -msgstr "" +msgstr "Nom affiché" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__fold msgid "Folded" -msgstr "" +msgstr "Plié" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_project__id @@ -59,75 +61,77 @@ msgstr "" #. module: project_status #: model:project.status,name:project_status.project_status_in_progress msgid "In Progress" -msgstr "" +msgstr "En cours" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__is_closed msgid "Is Closed Status" -msgstr "" +msgstr "Est un état fermé" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_project____last_update #: model:ir.model.fields,field_description:project_status.field_project_status____last_update msgid "Last Modified on" -msgstr "" +msgstr "Dernière modification le" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Dernière mise à jour par" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__write_date msgid "Last Updated on" -msgstr "" +msgstr "Dernière mise à jour le" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__name msgid "Name" -msgstr "" +msgstr "Nom" #. module: project_status #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Not Closed" -msgstr "" +msgstr "En cours" #. module: project_status #: model:project.status,name:project_status.project_status_pending msgid "Pending" -msgstr "" +msgstr "En attente" #. module: project_status #: model:ir.model,name:project_status.model_project_project msgid "Project" -msgstr "" +msgstr "Projet" #. module: project_status #: model:ir.model,name:project_status.model_project_status #: model:ir.model.fields,field_description:project_status.field_project_project__project_status msgid "Project Status" -msgstr "" +msgstr "Etat du Projet" #. module: project_status #: model:ir.actions.act_window,name:project_status.project_status_action #: model:ir.ui.menu,name:project_status.project_status_menu msgid "Project Statuses" -msgstr "" +msgstr "Etats du projet" #. module: project_status #: model:project.status,description:project_status.project_status_complete msgid "Project has been completed." -msgstr "" +msgstr "Le projet est terminé." #. module: project_status #: model:project.status,description:project_status.project_status_in_progress msgid "Project is currently initiated and being worked." -msgstr "" +msgstr "Le projet est actuellement lancé et en cours de réalisation." #. module: project_status #: model:project.status,description:project_status.project_status_pending msgid "Project is new and being built. Has not been started yet." msgstr "" +"Le projet est nouveau et en cours de construction. Il n'a pas encore été " +"lancé." #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence @@ -137,9 +141,9 @@ msgstr "" #. module: project_status #: model:ir.model.fields,help:project_status.field_project_status__is_closed msgid "Specify if this is a closing status." -msgstr "" +msgstr "Indiquez s'il s'agit d'un état fermé." #. module: project_status #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Status" -msgstr "" +msgstr "Etat" From 0bfdab3020b69bd091d9aa720f5bae44eec3dbd6 Mon Sep 17 00:00:00 2001 From: Yves Le Doeuff Date: Sun, 11 Apr 2021 14:53:48 +0000 Subject: [PATCH 15/26] Added translation using Weblate (French (France)) --- project_status/i18n/fr_FR.po | 145 +++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 project_status/i18n/fr_FR.po diff --git a/project_status/i18n/fr_FR.po b/project_status/i18n/fr_FR.po new file mode 100644 index 0000000000..8fd893a461 --- /dev/null +++ b/project_status/i18n/fr_FR.po @@ -0,0 +1,145 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * project_status +# +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_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: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Closed" +msgstr "" + +#. module: project_status +#: model:project.status,name:project_status.project_status_complete +msgid "Complete" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_uid +msgid "Created by" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__create_date +msgid "Created on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__description +msgid "Description" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__display_name +#: model:ir.model.fields,field_description:project_status.field_project_status__display_name +msgid "Display Name" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__fold +msgid "Folded" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__id +#: model:ir.model.fields,field_description:project_status.field_project_status__id +msgid "ID" +msgstr "" + +#. module: project_status +#: model:project.status,name:project_status.project_status_in_progress +msgid "In Progress" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__is_closed +msgid "Is Closed Status" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_project____last_update +#: model:ir.model.fields,field_description:project_status.field_project_status____last_update +msgid "Last Modified on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__write_date +msgid "Last Updated on" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__name +msgid "Name" +msgstr "" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Not Closed" +msgstr "" + +#. module: project_status +#: model:project.status,name:project_status.project_status_pending +msgid "Pending" +msgstr "" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_project +msgid "Project" +msgstr "" + +#. module: project_status +#: model:ir.model,name:project_status.model_project_status +#: model:ir.model.fields,field_description:project_status.field_project_project__project_status +msgid "Project Status" +msgstr "" + +#. module: project_status +#: model:ir.actions.act_window,name:project_status.project_status_action +#: model:ir.ui.menu,name:project_status.project_status_menu +msgid "Project Statuses" +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_complete +msgid "Project has been completed." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_in_progress +msgid "Project is currently initiated and being worked." +msgstr "" + +#. module: project_status +#: model:project.status,description:project_status.project_status_pending +msgid "Project is new and being built. Has not been started yet." +msgstr "" + +#. module: project_status +#: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence +msgid "Sequence" +msgstr "" + +#. module: project_status +#: model:ir.model.fields,help:project_status.field_project_status__is_closed +msgid "Specify if this is a closing status." +msgstr "" + +#. module: project_status +#: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter +msgid "Status" +msgstr "" From 555cc9caf5c8eadebaf54c907daa98331eb3a7e4 Mon Sep 17 00:00:00 2001 From: Yves Le Doeuff Date: Sun, 11 Apr 2021 14:54:02 +0000 Subject: [PATCH 16/26] Translated using Weblate (French (France)) Currently translated at 100.0% (25 of 25 strings) Translation: project-14.0/project-14.0-project_status Translate-URL: https://translation.odoo-community.org/projects/project-14-0/project-14-0-project_status/fr_FR/ --- project_status/i18n/fr_FR.po | 54 +++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/project_status/i18n/fr_FR.po b/project_status/i18n/fr_FR.po index 8fd893a461..7f8aae2180 100644 --- a/project_status/i18n/fr_FR.po +++ b/project_status/i18n/fr_FR.po @@ -6,140 +6,144 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2021-04-11 16:46+0000\n" +"Last-Translator: Yves Le Doeuff \n" "Language-Team: none\n" "Language: fr_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: project_status #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Closed" -msgstr "" +msgstr "Fermé" #. module: project_status #: model:project.status,name:project_status.project_status_complete msgid "Complete" -msgstr "" +msgstr "Terminé" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__create_uid msgid "Created by" -msgstr "" +msgstr "Créé par" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__create_date msgid "Created on" -msgstr "" +msgstr "Créé le" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__description msgid "Description" -msgstr "" +msgstr "Description" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_project__display_name #: model:ir.model.fields,field_description:project_status.field_project_status__display_name msgid "Display Name" -msgstr "" +msgstr "Nom affiché" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__fold msgid "Folded" -msgstr "" +msgstr "Plié" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_project__id #: model:ir.model.fields,field_description:project_status.field_project_status__id msgid "ID" -msgstr "" +msgstr "ID" #. module: project_status #: model:project.status,name:project_status.project_status_in_progress msgid "In Progress" -msgstr "" +msgstr "En cours" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__is_closed msgid "Is Closed Status" -msgstr "" +msgstr "Est un état fermé" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_project____last_update #: model:ir.model.fields,field_description:project_status.field_project_status____last_update msgid "Last Modified on" -msgstr "" +msgstr "Dernière modification le" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Dernière mise à jour par" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__write_date msgid "Last Updated on" -msgstr "" +msgstr "Dernière mise à jour le" #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__name msgid "Name" -msgstr "" +msgstr "Nom" #. module: project_status #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Not Closed" -msgstr "" +msgstr "En cours" #. module: project_status #: model:project.status,name:project_status.project_status_pending msgid "Pending" -msgstr "" +msgstr "En attente" #. module: project_status #: model:ir.model,name:project_status.model_project_project msgid "Project" -msgstr "" +msgstr "Projet" #. module: project_status #: model:ir.model,name:project_status.model_project_status #: model:ir.model.fields,field_description:project_status.field_project_project__project_status msgid "Project Status" -msgstr "" +msgstr "Etat du Projet" #. module: project_status #: model:ir.actions.act_window,name:project_status.project_status_action #: model:ir.ui.menu,name:project_status.project_status_menu msgid "Project Statuses" -msgstr "" +msgstr "Etats du projet" #. module: project_status #: model:project.status,description:project_status.project_status_complete msgid "Project has been completed." -msgstr "" +msgstr "Le projet est terminé." #. module: project_status #: model:project.status,description:project_status.project_status_in_progress msgid "Project is currently initiated and being worked." -msgstr "" +msgstr "Le projet est actuellement lancé et en cours de réalisation." #. module: project_status #: model:project.status,description:project_status.project_status_pending msgid "Project is new and being built. Has not been started yet." msgstr "" +"Le projet est nouveau et en cours de construction. Il n'a pas encore été " +"lancé." #. module: project_status #: model:ir.model.fields,field_description:project_status.field_project_status__status_sequence msgid "Sequence" -msgstr "" +msgstr "Séquence" #. module: project_status #: model:ir.model.fields,help:project_status.field_project_status__is_closed msgid "Specify if this is a closing status." -msgstr "" +msgstr "Indiquez s'il s'agit d'un état fermé." #. module: project_status #: model_terms:ir.ui.view,arch_db:project_status.view_project_project_filter msgid "Status" -msgstr "" +msgstr "Etat" From 4a6231b6e0ba4cdb6502770909d95f8b1b264d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marques?= Date: Fri, 11 Jun 2021 07:48:39 +0100 Subject: [PATCH 17/26] [IMP] project_status: Add multi-company support TT30382 --- project_status/README.rst | 3 +++ project_status/__manifest__.py | 1 + project_status/data/data.xml | 13 ++++++++++--- .../migrations/13.0.2.0.0/post-migration.py | 9 +++++++++ project_status/models/project_status.py | 5 +++++ project_status/readme/CONTRIBUTORS.rst | 3 +++ project_status/security/project_status.xml | 12 ++++++++++++ project_status/static/description/index.html | 6 +++++- project_status/views/project_status.xml | 1 + 9 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 project_status/migrations/13.0.2.0.0/post-migration.py create mode 100644 project_status/security/project_status.xml diff --git a/project_status/README.rst b/project_status/README.rst index 0de8caa22e..88d26829aa 100644 --- a/project_status/README.rst +++ b/project_status/README.rst @@ -64,6 +64,9 @@ Contributors * Patrick Wilson * Bhavesh Odedra +* `Tecnativa `__: + + * João Marques Maintainers ~~~~~~~~~~~ diff --git a/project_status/__manifest__.py b/project_status/__manifest__.py index bb5c1d65a0..df7f8b2984 100644 --- a/project_status/__manifest__.py +++ b/project_status/__manifest__.py @@ -12,6 +12,7 @@ "views/project_status.xml", "views/project.xml", "security/ir.model.access.csv", + "security/project_status.xml", "data/data.xml", ], "application": False, diff --git a/project_status/data/data.xml b/project_status/data/data.xml index ad54f33420..aed3b95572 100644 --- a/project_status/data/data.xml +++ b/project_status/data/data.xml @@ -1,19 +1,26 @@ - + Pending + Project is new and being built. Has not been started yet. - + In Progress + Project is currently initiated and being worked. - + Complete + Project has been completed. diff --git a/project_status/migrations/13.0.2.0.0/post-migration.py b/project_status/migrations/13.0.2.0.0/post-migration.py new file mode 100644 index 0000000000..1578244561 --- /dev/null +++ b/project_status/migrations/13.0.2.0.0/post-migration.py @@ -0,0 +1,9 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + """Set current Project Status as not company limit""" + env["project.status"].search([]).write({"company_id": False}) diff --git a/project_status/models/project_status.py b/project_status/models/project_status.py index 8636913064..f3488c670d 100644 --- a/project_status/models/project_status.py +++ b/project_status/models/project_status.py @@ -7,6 +7,11 @@ class ProjectStatus(models.Model): _description = "Project Status" name = fields.Char(string="Name", required=True, translate=True) + company_id = fields.Many2one( + comodel_name="res.company", + string="Company", + default=lambda self: self.env.company, + ) description = fields.Char(string="Description", translate=True) status_sequence = fields.Integer(string="Sequence") is_closed = fields.Boolean( diff --git a/project_status/readme/CONTRIBUTORS.rst b/project_status/readme/CONTRIBUTORS.rst index 4b91669fcd..69210375c2 100644 --- a/project_status/readme/CONTRIBUTORS.rst +++ b/project_status/readme/CONTRIBUTORS.rst @@ -1,2 +1,5 @@ * Patrick Wilson * Bhavesh Odedra +* `Tecnativa `__: + + * João Marques diff --git a/project_status/security/project_status.xml b/project_status/security/project_status.xml new file mode 100644 index 0000000000..4d61efe25f --- /dev/null +++ b/project_status/security/project_status.xml @@ -0,0 +1,12 @@ + + + + + Project Status multi-company + + + ['|',('company_id','=',False),('company_id','in',company_ids)] + + + diff --git a/project_status/static/description/index.html b/project_status/static/description/index.html index 417e1ef790..a511f7225c 100644 --- a/project_status/static/description/index.html +++ b/project_status/static/description/index.html @@ -3,7 +3,7 @@ - + Project Status