From e9de8fe93151ca58f98453b0e47c649d27148b6d Mon Sep 17 00:00:00 2001 From: Jordi Ballester Alomar Date: Fri, 2 Aug 2019 14:31:34 +0200 Subject: [PATCH 01/19] [11.0][ADD] maintenance_equipment_status --- maintenance_equipment_status/README.rst | 74 +++ maintenance_equipment_status/__init__.py | 1 + maintenance_equipment_status/__manifest__.py | 21 + .../i18n/maintenance_equipment_status.pot | 129 ++++++ .../models/__init__.py | 2 + .../models/maintenance_equipment.py | 18 + .../models/maintenance_equipment_status.py | 24 + .../readme/CONFIGURATION.rst | 5 + .../readme/CONTRIBUTORS.rst | 2 + .../readme/DESCRIPTION.rst | 1 + .../security/ir.model.access.csv | 3 + .../static/description/icon.png | Bin 0 -> 9455 bytes .../static/description/index.html | 420 ++++++++++++++++++ .../tests/__init__.py | 1 + .../test_maintenance_equipment_status.py | 37 ++ .../maintenance_equipment_status_views.xml | 77 ++++ .../views/maintenance_equipment_views.xml | 47 ++ 17 files changed, 862 insertions(+) create mode 100644 maintenance_equipment_status/README.rst create mode 100644 maintenance_equipment_status/__init__.py create mode 100644 maintenance_equipment_status/__manifest__.py create mode 100644 maintenance_equipment_status/i18n/maintenance_equipment_status.pot create mode 100644 maintenance_equipment_status/models/__init__.py create mode 100644 maintenance_equipment_status/models/maintenance_equipment.py create mode 100644 maintenance_equipment_status/models/maintenance_equipment_status.py create mode 100644 maintenance_equipment_status/readme/CONFIGURATION.rst create mode 100644 maintenance_equipment_status/readme/CONTRIBUTORS.rst create mode 100644 maintenance_equipment_status/readme/DESCRIPTION.rst create mode 100644 maintenance_equipment_status/security/ir.model.access.csv create mode 100644 maintenance_equipment_status/static/description/icon.png create mode 100644 maintenance_equipment_status/static/description/index.html create mode 100644 maintenance_equipment_status/tests/__init__.py create mode 100644 maintenance_equipment_status/tests/test_maintenance_equipment_status.py create mode 100644 maintenance_equipment_status/views/maintenance_equipment_status_views.xml create mode 100644 maintenance_equipment_status/views/maintenance_equipment_views.xml diff --git a/maintenance_equipment_status/README.rst b/maintenance_equipment_status/README.rst new file mode 100644 index 000000000..23d563c2f --- /dev/null +++ b/maintenance_equipment_status/README.rst @@ -0,0 +1,74 @@ +============================ +Maintenance Equipment 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-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmaintenance-lightgray.png?logo=github + :target: https://github.com/OCA/maintenance/tree/11.0/maintenance_equipment_status + :alt: OCA/maintenance +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/maintenance-11-0/maintenance-11-0-maintenance_equipment_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/240/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to indicate status of an equipment. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Eficent + +Contributors +~~~~~~~~~~~~ + +* Adri?? Gil +* Jordi Ballester Alomar + +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/maintenance `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/maintenance_equipment_status/__init__.py b/maintenance_equipment_status/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/maintenance_equipment_status/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/maintenance_equipment_status/__manifest__.py b/maintenance_equipment_status/__manifest__.py new file mode 100644 index 000000000..e503b351a --- /dev/null +++ b/maintenance_equipment_status/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). +{ + 'name': 'Maintenance Equipment Status', + 'version': '11.0.1.0.0', + 'category': '', + 'author': 'Eficent, Odoo Community Association (OCA)', + 'website': 'http://github.com/OCA/maintenance', + 'license': 'LGPL-3', + 'depends': [ + 'maintenance', + ], + 'data': [ + 'security/ir.model.access.csv', + 'views/maintenance_equipment_status_views.xml', + 'views/maintenance_equipment_views.xml', + ], + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot new file mode 100644 index 000000000..f54e71ffc --- /dev/null +++ b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot @@ -0,0 +1,129 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * maintenance_equipment_status +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.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: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_active +msgid "Active" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search +msgid "Archived" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_category_ids +msgid "Categories" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.actions.act_window,help:maintenance_equipment_status.maintenance_equipment_status_action +msgid "Click to set a new status for your equipments." +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_create_uid +msgid "Created by" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_create_date +msgid "Created on" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_display_name +msgid "Display Name" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment +msgid "Equipment" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_tree +msgid "Equipment Status" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.actions.act_window,name:maintenance_equipment_status.maintenance_equipment_status_action +#: model:ir.ui.menu,name:maintenance_equipment_status.menu_maintenance_equipment_status_act +msgid "Equipment Statuses" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2171 +msgid "ID" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status___last_update +msgid "Last Modified on" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_uid +msgid "Last Updated by" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_date +msgid "Last Updated on" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment_status +msgid "Maintenance Equipment Status" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2167 +msgid "Name" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_note +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +msgid "Notes" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_sequence +msgid "Sequence" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id +msgid "Status" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name +msgid "Status name" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status_category_ids +msgid "When set, this status will only be applicable to the equipments under these categories." +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +msgid "e.g. Operational" +msgstr "" + diff --git a/maintenance_equipment_status/models/__init__.py b/maintenance_equipment_status/models/__init__.py new file mode 100644 index 000000000..56e8b5a72 --- /dev/null +++ b/maintenance_equipment_status/models/__init__.py @@ -0,0 +1,2 @@ +from . import maintenance_equipment +from . import maintenance_equipment_status diff --git a/maintenance_equipment_status/models/maintenance_equipment.py b/maintenance_equipment_status/models/maintenance_equipment.py new file mode 100644 index 000000000..6d2446d10 --- /dev/null +++ b/maintenance_equipment_status/models/maintenance_equipment.py @@ -0,0 +1,18 @@ +# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +from odoo import models, fields + + +class MaintenanceEquipment(models.Model): + _inherit = "maintenance.equipment" + + status_id = fields.Many2one( + string='Status', comodel_name='maintenance.equipment.status', + track_visibility='onchange', + ) + status_name = fields.Char( + string='Status name', + related='status_id.name', + store=True, + ) diff --git a/maintenance_equipment_status/models/maintenance_equipment_status.py b/maintenance_equipment_status/models/maintenance_equipment_status.py new file mode 100644 index 000000000..45c779ebb --- /dev/null +++ b/maintenance_equipment_status/models/maintenance_equipment_status.py @@ -0,0 +1,24 @@ +# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +from odoo import models, fields + + +class MaintenanceEquipmentStatus(models.Model): + _name = "maintenance.equipment.status" + _description = "Maintenance Equipment Status" + _order = 'sequence' + + active = fields.Boolean(default=True) + name = fields.Char('Name') + note = fields.Text('Notes') + sequence = fields.Integer( + string='Sequence', + default=10, + ) + category_ids = fields.Many2many( + string='Categories', + comodel_name='maintenance.equipment.category', + help="When set, this status will only be applicable to the equipments " + "under these categories.", + ) diff --git a/maintenance_equipment_status/readme/CONFIGURATION.rst b/maintenance_equipment_status/readme/CONFIGURATION.rst new file mode 100644 index 000000000..b31f6ee3d --- /dev/null +++ b/maintenance_equipment_status/readme/CONFIGURATION.rst @@ -0,0 +1,5 @@ +To cotnfigure this module, you need to: + +#. Maintenance > Configuration > Equipment Statuses + +You can limit the usage of status to specific equipment categories. diff --git a/maintenance_equipment_status/readme/CONTRIBUTORS.rst b/maintenance_equipment_status/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..556d6063e --- /dev/null +++ b/maintenance_equipment_status/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Adri?? Gil +* Jordi Ballester Alomar diff --git a/maintenance_equipment_status/readme/DESCRIPTION.rst b/maintenance_equipment_status/readme/DESCRIPTION.rst new file mode 100644 index 000000000..6f03b2146 --- /dev/null +++ b/maintenance_equipment_status/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module allows to indicate status of an equipment. diff --git a/maintenance_equipment_status/security/ir.model.access.csv b/maintenance_equipment_status/security/ir.model.access.csv new file mode 100644 index 000000000..55ce16e20 --- /dev/null +++ b/maintenance_equipment_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 +access_maintenance_equipment_status,access_maintenance_equipment_status,model_maintenance_equipment_status,base.group_user,1,0,0,0 +access_maintenance_equipment_status_admin,access_maintenance_equipment_status_admin,model_maintenance_equipment_status,maintenance.group_equipment_manager,1,1,1,1 diff --git a/maintenance_equipment_status/static/description/icon.png b/maintenance_equipment_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>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW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FdISRnZ2W_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/maintenance_equipment_status/static/description/index.html b/maintenance_equipment_status/static/description/index.html new file mode 100644 index 000000000..6387377e2 --- /dev/null +++ b/maintenance_equipment_status/static/description/index.html @@ -0,0 +1,420 @@ + + + + + + +Maintenance Equipment Status + + + +
+

Maintenance Equipment Status

+ + +

Beta License: LGPL-3 OCA/maintenance Translate me on Weblate Try me on Runbot

+

This module allows to indicate status of an equipment.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Eficent
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

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

+

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

+
+
+
+ + diff --git a/maintenance_equipment_status/tests/__init__.py b/maintenance_equipment_status/tests/__init__.py new file mode 100644 index 000000000..d8617c570 --- /dev/null +++ b/maintenance_equipment_status/tests/__init__.py @@ -0,0 +1 @@ +from . import test_maintenance_equipment_status diff --git a/maintenance_equipment_status/tests/test_maintenance_equipment_status.py b/maintenance_equipment_status/tests/test_maintenance_equipment_status.py new file mode 100644 index 000000000..9f5ca4680 --- /dev/null +++ b/maintenance_equipment_status/tests/test_maintenance_equipment_status.py @@ -0,0 +1,37 @@ +# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +from odoo.tests import common + + +class TestMaintenanceEquipmentStatus(common.TransactionCase): + + def setUp(self): + super(TestMaintenanceEquipmentStatus, self).setUp() + self.Equipment = self.env['maintenance.equipment'] + self.EquipmentStatus = self.env['maintenance.equipment.status'] + self.Category = self.env['maintenance.equipment.category'] + self.Template = self.env['mail.template'] + self.equipment_category = self.Category.create({ + 'name': 'Equipment Category', + }) + + self.equipment1 = self.Equipment.create({ + 'name': 'Equipment 1', + 'category_id': self.equipment_category.id, + }) + + self.equipment2 = self.Equipment.create({ + 'name': 'Equipment 2', + 'category_id': self.equipment_category.id, + }) + self.equipment_status = self.EquipmentStatus.create({ + 'name': 'State 1', + 'category_ids': [(6, 0, self.equipment_category.ids)] + }) + + def test_01(self): + status = self.EquipmentStatus.search([]) + self.assertEqual(status, self.equipment_status) + self.equipment1.status_id = self.equipment_status + self.assertEqual(self.equipment1.status_name, 'State 1') diff --git a/maintenance_equipment_status/views/maintenance_equipment_status_views.xml b/maintenance_equipment_status/views/maintenance_equipment_status_views.xml new file mode 100644 index 000000000..0bf5c6135 --- /dev/null +++ b/maintenance_equipment_status/views/maintenance_equipment_status_views.xml @@ -0,0 +1,77 @@ + + + + + maintenance.equipment.status.form + maintenance.equipment.status + +
+
+ +
+ +
+
+
+ + + + +
+ + +
+
+
+ + + + + + maintenance.equipment.status.tree + maintenance.equipment.status + + + + + + + + + + + maintenance.equipment.status.search + maintenance.equipment.status + + + + + + + + + + + Equipment Statuses + maintenance.equipment.status + form + + +

+ Click to set a new status for your equipments. +

+
+
+ + + + diff --git a/maintenance_equipment_status/views/maintenance_equipment_views.xml b/maintenance_equipment_status/views/maintenance_equipment_views.xml new file mode 100644 index 000000000..c67c6cd20 --- /dev/null +++ b/maintenance_equipment_status/views/maintenance_equipment_views.xml @@ -0,0 +1,47 @@ + + + + + + equipment.form + maintenance.equipment + + + +
+ + +
+
+
+
+ + + equipment.tree + maintenance.equipment + + + + + + + + + + equipment.kanban + maintenance.equipment + + + + + + +
+ +
+
+
+
+ +
From 44da9360fbdc37d2f56a2a0610c4cb0ec5ae306c Mon Sep 17 00:00:00 2001 From: Jaime Arroyo Date: Wed, 20 Nov 2019 12:39:33 +0000 Subject: [PATCH 02/19] Added translation using Weblate (Spanish) --- maintenance_equipment_status/i18n/es.po | 129 ++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 maintenance_equipment_status/i18n/es.po diff --git a/maintenance_equipment_status/i18n/es.po b/maintenance_equipment_status/i18n/es.po new file mode 100644 index 000000000..5006d77ad --- /dev/null +++ b/maintenance_equipment_status/i18n/es.po @@ -0,0 +1,129 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * maintenance_equipment_status +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\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" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_active +msgid "Active" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search +msgid "Archived" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_category_ids +msgid "Categories" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.actions.act_window,help:maintenance_equipment_status.maintenance_equipment_status_action +msgid "Click to set a new status for your equipments." +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_create_uid +msgid "Created by" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_create_date +msgid "Created on" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_display_name +msgid "Display Name" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment +msgid "Equipment" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_tree +msgid "Equipment Status" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.actions.act_window,name:maintenance_equipment_status.maintenance_equipment_status_action +#: model:ir.ui.menu,name:maintenance_equipment_status.menu_maintenance_equipment_status_act +msgid "Equipment Statuses" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2171 +msgid "ID" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status___last_update +msgid "Last Modified on" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_uid +msgid "Last Updated by" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_date +msgid "Last Updated on" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment_status +msgid "Maintenance Equipment Status" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2167 +msgid "Name" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_note +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +msgid "Notes" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_sequence +msgid "Sequence" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id +msgid "Status" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name +msgid "Status name" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status_category_ids +msgid "When set, this status will only be applicable to the equipments under these categories." +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +msgid "e.g. Operational" +msgstr "" From 461830d6178690b2a9c9da9c718873c553032924 Mon Sep 17 00:00:00 2001 From: Jaime Arroyo Date: Wed, 20 Nov 2019 12:39:56 +0000 Subject: [PATCH 03/19] Translated using Weblate (Spanish) Currently translated at 100.0% (22 of 22 strings) Translation: maintenance-11.0/maintenance-11.0-maintenance_equipment_status Translate-URL: https://translation.odoo-community.org/projects/maintenance-11-0/maintenance-11-0-maintenance_equipment_status/es/ --- maintenance_equipment_status/i18n/es.po | 58 ++++++++++--------- .../i18n/maintenance_equipment_status.pot | 4 +- 2 files changed, 34 insertions(+), 28 deletions(-) diff --git a/maintenance_equipment_status/i18n/es.po b/maintenance_equipment_status/i18n/es.po index 5006d77ad..2e68a9009 100644 --- a/maintenance_equipment_status/i18n/es.po +++ b/maintenance_equipment_status/i18n/es.po @@ -1,129 +1,135 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * maintenance_equipment_status +# * maintenance_equipment_status # msgid "" msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2019-11-20 14:35+0000\n" +"Last-Translator: Jaime Arroyo \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.8\n" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_active msgid "Active" -msgstr "" +msgstr "Activo" #. module: maintenance_equipment_status #: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search msgid "Archived" -msgstr "" +msgstr "Archivado" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_category_ids msgid "Categories" -msgstr "" +msgstr "Categor??as" #. module: maintenance_equipment_status #: model:ir.actions.act_window,help:maintenance_equipment_status.maintenance_equipment_status_action msgid "Click to set a new status for your equipments." -msgstr "" +msgstr "Hacer click para crear nuevos estados para los equipamientos." #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_create_uid msgid "Created by" -msgstr "" +msgstr "Creado por" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_create_date msgid "Created on" -msgstr "" +msgstr "Creado el" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_display_name msgid "Display Name" -msgstr "" +msgstr "Nombre a mostrar" #. module: maintenance_equipment_status #: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment msgid "Equipment" -msgstr "" +msgstr "Equipamiento" #. module: maintenance_equipment_status #: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form #: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search #: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_tree msgid "Equipment Status" -msgstr "" +msgstr "Estado del Equipamiento" #. module: maintenance_equipment_status #: model:ir.actions.act_window,name:maintenance_equipment_status.maintenance_equipment_status_action #: model:ir.ui.menu,name:maintenance_equipment_status.menu_maintenance_equipment_status_act msgid "Equipment Statuses" -msgstr "" +msgstr "Estados de Equipamiento" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2171 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2174 msgid "ID" -msgstr "" +msgstr "ID" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status___last_update msgid "Last Modified on" -msgstr "" +msgstr "??ltima Modificaci??n el" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_uid msgid "Last Updated by" -msgstr "" +msgstr "??ltima Actualizaci??n por" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_date msgid "Last Updated on" -msgstr "" +msgstr "??ltima Actualizaci??n el" #. module: maintenance_equipment_status #: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment_status msgid "Maintenance Equipment Status" -msgstr "" +msgstr "Estados de Equipos" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2167 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2170 msgid "Name" -msgstr "" +msgstr "Nombre" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_note #: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form msgid "Notes" -msgstr "" +msgstr "Notas" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_sequence msgid "Sequence" -msgstr "" +msgstr "Secuencia" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id msgid "Status" -msgstr "" +msgstr "Estado" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name msgid "Status name" -msgstr "" +msgstr "Nombre del Estado" #. module: maintenance_equipment_status #: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status_category_ids -msgid "When set, this status will only be applicable to the equipments under these categories." +msgid "" +"When set, this status will only be applicable to the equipments under these " +"categories." msgstr "" +"Si se establece, este estado solo se aplicara a equipamientos de estas " +"categor??as." #. module: maintenance_equipment_status #: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form msgid "e.g. Operational" -msgstr "" +msgstr "p. e. Operativo" diff --git a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot index f54e71ffc..58fbd3509 100644 --- a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot +++ b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot @@ -67,7 +67,7 @@ msgid "Equipment Statuses" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2171 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2174 msgid "ID" msgstr "" @@ -92,7 +92,7 @@ msgid "Maintenance Equipment Status" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2167 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2170 msgid "Name" msgstr "" From d457625595047fc13404a14bc66d391059c1eb52 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Mon, 30 Dec 2019 13:38:05 +0000 Subject: [PATCH 04/19] Translated using Weblate (Spanish) Currently translated at 100.0% (22 of 22 strings) Translation: maintenance-11.0/maintenance-11.0-maintenance_equipment_status Translate-URL: https://translation.odoo-community.org/projects/maintenance-11-0/maintenance-11-0-maintenance_equipment_status/es/ --- maintenance_equipment_status/i18n/es.po | 14 +++++++------- .../i18n/maintenance_equipment_status.pot | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/maintenance_equipment_status/i18n/es.po b/maintenance_equipment_status/i18n/es.po index 2e68a9009..c108cd1e2 100644 --- a/maintenance_equipment_status/i18n/es.po +++ b/maintenance_equipment_status/i18n/es.po @@ -6,15 +6,15 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2019-11-20 14:35+0000\n" -"Last-Translator: Jaime Arroyo \n" +"PO-Revision-Date: 2019-12-30 13:49+0000\n" +"Last-Translator: Enric Tobella \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.8\n" +"X-Generator: Weblate 3.10\n" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_active @@ -70,19 +70,19 @@ msgid "Equipment Statuses" msgstr "Estados de Equipamiento" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2174 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2184 msgid "ID" msgstr "ID" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status___last_update msgid "Last Modified on" -msgstr "??ltima Modificaci??n el" +msgstr "??ltima modificaci??n en" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_uid msgid "Last Updated by" -msgstr "??ltima Actualizaci??n por" +msgstr "??ltima modificaci??n por" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_date @@ -95,7 +95,7 @@ msgid "Maintenance Equipment Status" msgstr "Estados de Equipos" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2170 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2180 msgid "Name" msgstr "Nombre" diff --git a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot index 58fbd3509..021e855d6 100644 --- a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot +++ b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot @@ -67,7 +67,7 @@ msgid "Equipment Statuses" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2174 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2184 msgid "ID" msgstr "" @@ -92,7 +92,7 @@ msgid "Maintenance Equipment Status" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2170 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2180 msgid "Name" msgstr "" From e2eccc67b7d3b34426af57d96b008d42d0211961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=BAria=20Mart=C3=ADn=20Xifr=C3=A9?= Date: Fri, 10 Jan 2020 10:54:12 +0100 Subject: [PATCH 05/19] [12.0][MIG] maintenance_equipment_status --- maintenance_equipment_status/README.rst | 14 ++--- maintenance_equipment_status/__manifest__.py | 6 +- maintenance_equipment_status/i18n/es.po | 59 ++++++++++--------- .../i18n/maintenance_equipment_status.pot | 56 +++++++++--------- .../models/maintenance_equipment.py | 2 +- .../models/maintenance_equipment_status.py | 2 +- .../readme/CONTRIBUTORS.rst | 4 +- .../static/description/index.html | 10 ++-- .../test_maintenance_equipment_status.py | 2 +- .../views/maintenance_equipment_views.xml | 9 +-- 10 files changed, 83 insertions(+), 81 deletions(-) diff --git a/maintenance_equipment_status/README.rst b/maintenance_equipment_status/README.rst index 23d563c2f..3b6cf5a6e 100644 --- a/maintenance_equipment_status/README.rst +++ b/maintenance_equipment_status/README.rst @@ -14,13 +14,13 @@ Maintenance Equipment Status :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmaintenance-lightgray.png?logo=github - :target: https://github.com/OCA/maintenance/tree/11.0/maintenance_equipment_status + :target: https://github.com/OCA/maintenance/tree/12.0/maintenance_equipment_status :alt: OCA/maintenance .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/maintenance-11-0/maintenance-11-0-maintenance_equipment_status + :target: https://translation.odoo-community.org/projects/maintenance-12-0/maintenance-12-0-maintenance_equipment_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/240/11.0 + :target: https://runbot.odoo-community.org/runbot/240/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,7 +38,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. @@ -53,8 +53,8 @@ Authors Contributors ~~~~~~~~~~~~ -* Adri?? Gil -* Jordi Ballester Alomar +* Adri?? Gil +* Jordi Ballester Alomar Maintainers ~~~~~~~~~~~ @@ -69,6 +69,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/maintenance `_ project on GitHub. +This module is part of the `OCA/maintenance `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/maintenance_equipment_status/__manifest__.py b/maintenance_equipment_status/__manifest__.py index e503b351a..0ca89f76a 100644 --- a/maintenance_equipment_status/__manifest__.py +++ b/maintenance_equipment_status/__manifest__.py @@ -1,14 +1,14 @@ -# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# Copyright 2020 ForgeFlow S.L. (https://forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { 'name': 'Maintenance Equipment Status', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'category': '', 'author': 'Eficent, Odoo Community Association (OCA)', 'website': 'http://github.com/OCA/maintenance', 'license': 'LGPL-3', 'depends': [ - 'maintenance', + 'base_maintenance', ], 'data': [ 'security/ir.model.access.csv', diff --git a/maintenance_equipment_status/i18n/es.po b/maintenance_equipment_status/i18n/es.po index c108cd1e2..a9474efa6 100644 --- a/maintenance_equipment_status/i18n/es.po +++ b/maintenance_equipment_status/i18n/es.po @@ -17,49 +17,44 @@ msgstr "" "X-Generator: Weblate 3.10\n" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_active +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__active msgid "Active" msgstr "Activo" #. module: maintenance_equipment_status -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search msgid "Archived" msgstr "Archivado" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_category_ids +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__category_ids msgid "Categories" msgstr "Categor??as" #. module: maintenance_equipment_status -#: model:ir.actions.act_window,help:maintenance_equipment_status.maintenance_equipment_status_action +#: model_terms:ir.actions.act_window,help:maintenance_equipment_status.maintenance_equipment_status_action msgid "Click to set a new status for your equipments." msgstr "Hacer click para crear nuevos estados para los equipamientos." #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_create_uid +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__create_uid msgid "Created by" msgstr "Creado por" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_create_date +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__create_date msgid "Created on" msgstr "Creado el" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_display_name +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__display_name msgid "Display Name" msgstr "Nombre a mostrar" #. module: maintenance_equipment_status -#: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment -msgid "Equipment" -msgstr "Equipamiento" - -#. module: maintenance_equipment_status -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_tree +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_tree msgid "Equipment Status" msgstr "Estado del Equipamiento" @@ -70,58 +65,65 @@ msgid "Equipment Statuses" msgstr "Estados de Equipamiento" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2184 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__id msgid "ID" msgstr "ID" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status___last_update +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status____last_update msgid "Last Modified on" msgstr "??ltima modificaci??n en" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_uid +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__write_uid msgid "Last Updated by" msgstr "??ltima modificaci??n por" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_date +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__write_date msgid "Last Updated on" msgstr "??ltima Actualizaci??n el" +#. module: maintenance_equipment_status +#: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment +#, fuzzy +#| msgid "Maintenance Equipment Status" +msgid "Maintenance Equipment" +msgstr "Estados de Equipos" + #. module: maintenance_equipment_status #: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment_status msgid "Maintenance Equipment Status" msgstr "Estados de Equipos" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2180 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__name msgid "Name" msgstr "Nombre" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_note -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__note +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form msgid "Notes" msgstr "Notas" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__sequence msgid "Sequence" msgstr "Secuencia" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__status_id msgid "Status" msgstr "Estado" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__status_name msgid "Status name" msgstr "Nombre del Estado" #. module: maintenance_equipment_status -#: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status_category_ids +#: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status__category_ids msgid "" "When set, this status will only be applicable to the equipments under these " "categories." @@ -130,6 +132,9 @@ msgstr "" "categor??as." #. module: maintenance_equipment_status -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form msgid "e.g. Operational" msgstr "p. e. Operativo" + +#~ msgid "Equipment" +#~ msgstr "Equipamiento" diff --git a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot index 021e855d6..b108aa741 100644 --- a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot +++ b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -14,49 +14,44 @@ msgstr "" "Plural-Forms: \n" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_active +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__active msgid "Active" msgstr "" #. module: maintenance_equipment_status -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search msgid "Archived" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_category_ids +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__category_ids msgid "Categories" msgstr "" #. module: maintenance_equipment_status -#: model:ir.actions.act_window,help:maintenance_equipment_status.maintenance_equipment_status_action +#: model_terms:ir.actions.act_window,help:maintenance_equipment_status.maintenance_equipment_status_action msgid "Click to set a new status for your equipments." msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_create_uid +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__create_uid msgid "Created by" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_create_date +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__create_date msgid "Created on" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_display_name +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__display_name msgid "Display Name" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment -msgid "Equipment" -msgstr "" - -#. module: maintenance_equipment_status -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_tree +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_tree msgid "Equipment Status" msgstr "" @@ -67,63 +62,68 @@ msgid "Equipment Statuses" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id_2184 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__id msgid "ID" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status___last_update +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status____last_update msgid "Last Modified on" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_uid +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__write_uid msgid "Last Updated by" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_write_date +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__write_date msgid "Last Updated on" msgstr "" +#. module: maintenance_equipment_status +#: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment +msgid "Maintenance Equipment" +msgstr "" + #. module: maintenance_equipment_status #: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment_status msgid "Maintenance Equipment Status" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name_2180 +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__name msgid "Name" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_note -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__note +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form msgid "Notes" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__sequence msgid "Sequence" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_id +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__status_id msgid "Status" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status_name +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__status_name msgid "Status name" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status_category_ids +#: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status__category_ids msgid "When set, this status will only be applicable to the equipments under these categories." msgstr "" #. module: maintenance_equipment_status -#: model:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form msgid "e.g. Operational" msgstr "" diff --git a/maintenance_equipment_status/models/maintenance_equipment.py b/maintenance_equipment_status/models/maintenance_equipment.py index 6d2446d10..b1607db63 100644 --- a/maintenance_equipment_status/models/maintenance_equipment.py +++ b/maintenance_equipment_status/models/maintenance_equipment.py @@ -1,4 +1,4 @@ -# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# Copyright 2020 ForgeFlow S.L. (https://forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo import models, fields diff --git a/maintenance_equipment_status/models/maintenance_equipment_status.py b/maintenance_equipment_status/models/maintenance_equipment_status.py index 45c779ebb..9510c53a5 100644 --- a/maintenance_equipment_status/models/maintenance_equipment_status.py +++ b/maintenance_equipment_status/models/maintenance_equipment_status.py @@ -1,4 +1,4 @@ -# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# Copyright 2020 ForgeFlow S.L. (https://forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo import models, fields diff --git a/maintenance_equipment_status/readme/CONTRIBUTORS.rst b/maintenance_equipment_status/readme/CONTRIBUTORS.rst index 556d6063e..a0a4dbd6b 100644 --- a/maintenance_equipment_status/readme/CONTRIBUTORS.rst +++ b/maintenance_equipment_status/readme/CONTRIBUTORS.rst @@ -1,2 +1,2 @@ -* Adri?? Gil -* Jordi Ballester Alomar +* Adri?? Gil +* Jordi Ballester Alomar diff --git a/maintenance_equipment_status/static/description/index.html b/maintenance_equipment_status/static/description/index.html index 6387377e2..7b3eecb2b 100644 --- a/maintenance_equipment_status/static/description/index.html +++ b/maintenance_equipment_status/static/description/index.html @@ -367,7 +367,7 @@

Maintenance Equipment Status

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

Beta License: LGPL-3 OCA/maintenance Translate me on Weblate Try me on Runbot

+

Beta License: LGPL-3 OCA/maintenance Translate me on Weblate Try me on Runbot

This module allows to indicate status of an equipment.

Table of contents

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

@@ -400,8 +400,8 @@

Authors

Contributors

@@ -411,7 +411,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

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

+

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

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

diff --git a/maintenance_equipment_status/tests/test_maintenance_equipment_status.py b/maintenance_equipment_status/tests/test_maintenance_equipment_status.py index 9f5ca4680..5d6c73970 100644 --- a/maintenance_equipment_status/tests/test_maintenance_equipment_status.py +++ b/maintenance_equipment_status/tests/test_maintenance_equipment_status.py @@ -1,4 +1,4 @@ -# Copyright 2019 Eficent Business and IT Consulting Services S.L. +# Copyright 2020 ForgeFlow S.L. (https://forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). from odoo.tests import common diff --git a/maintenance_equipment_status/views/maintenance_equipment_views.xml b/maintenance_equipment_status/views/maintenance_equipment_views.xml index c67c6cd20..303a0ec9b 100644 --- a/maintenance_equipment_status/views/maintenance_equipment_views.xml +++ b/maintenance_equipment_status/views/maintenance_equipment_views.xml @@ -7,13 +7,10 @@ maintenance.equipment - -
+ - -
-
+
@@ -37,7 +34,7 @@ -
+
From 400c42116ee748f54e7dc739d7fead43013b5027 Mon Sep 17 00:00:00 2001 From: Joan Sisquella Date: Mon, 2 Mar 2020 09:17:25 +0100 Subject: [PATCH 06/19] [IMP] maintenance_equipment_status: black, isort --- maintenance_equipment_status/__manifest__.py | 30 ++++++++-------- .../models/maintenance_equipment.py | 11 +++--- .../models/maintenance_equipment_status.py | 19 +++++----- .../test_maintenance_equipment_status.py | 36 ++++++++----------- 4 files changed, 42 insertions(+), 54 deletions(-) diff --git a/maintenance_equipment_status/__manifest__.py b/maintenance_equipment_status/__manifest__.py index 0ca89f76a..9b5bdbda6 100644 --- a/maintenance_equipment_status/__manifest__.py +++ b/maintenance_equipment_status/__manifest__.py @@ -1,21 +1,19 @@ # Copyright 2020 ForgeFlow S.L. (https://forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { - 'name': 'Maintenance Equipment Status', - 'version': '12.0.1.0.0', - 'category': '', - 'author': 'Eficent, Odoo Community Association (OCA)', - 'website': 'http://github.com/OCA/maintenance', - 'license': 'LGPL-3', - 'depends': [ - 'base_maintenance', + "name": "Maintenance Equipment Status", + "version": "12.0.1.0.0", + "category": "", + "author": "Eficent, Odoo Community Association (OCA)", + "website": "http://github.com/OCA/maintenance", + "license": "LGPL-3", + "depends": ["base_maintenance"], + "data": [ + "security/ir.model.access.csv", + "views/maintenance_equipment_status_views.xml", + "views/maintenance_equipment_views.xml", ], - 'data': [ - 'security/ir.model.access.csv', - 'views/maintenance_equipment_status_views.xml', - 'views/maintenance_equipment_views.xml', - ], - 'installable': True, - 'auto_install': False, - 'application': False, + "installable": True, + "auto_install": False, + "application": False, } diff --git a/maintenance_equipment_status/models/maintenance_equipment.py b/maintenance_equipment_status/models/maintenance_equipment.py index b1607db63..0235a8db1 100644 --- a/maintenance_equipment_status/models/maintenance_equipment.py +++ b/maintenance_equipment_status/models/maintenance_equipment.py @@ -1,18 +1,17 @@ # Copyright 2020 ForgeFlow S.L. (https://forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import models, fields +from odoo import fields, models class MaintenanceEquipment(models.Model): _inherit = "maintenance.equipment" status_id = fields.Many2one( - string='Status', comodel_name='maintenance.equipment.status', - track_visibility='onchange', + string="Status", + comodel_name="maintenance.equipment.status", + track_visibility="onchange", ) status_name = fields.Char( - string='Status name', - related='status_id.name', - store=True, + string="Status name", related="status_id.name", store=True ) diff --git a/maintenance_equipment_status/models/maintenance_equipment_status.py b/maintenance_equipment_status/models/maintenance_equipment_status.py index 9510c53a5..6245c759f 100644 --- a/maintenance_equipment_status/models/maintenance_equipment_status.py +++ b/maintenance_equipment_status/models/maintenance_equipment_status.py @@ -1,24 +1,21 @@ # Copyright 2020 ForgeFlow S.L. (https://forgeflow.com) # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). -from odoo import models, fields +from odoo import fields, models class MaintenanceEquipmentStatus(models.Model): _name = "maintenance.equipment.status" _description = "Maintenance Equipment Status" - _order = 'sequence' + _order = "sequence" active = fields.Boolean(default=True) - name = fields.Char('Name') - note = fields.Text('Notes') - sequence = fields.Integer( - string='Sequence', - default=10, - ) + name = fields.Char("Name") + note = fields.Text("Notes") + sequence = fields.Integer(string="Sequence", default=10) category_ids = fields.Many2many( - string='Categories', - comodel_name='maintenance.equipment.category', + string="Categories", + comodel_name="maintenance.equipment.category", help="When set, this status will only be applicable to the equipments " - "under these categories.", + "under these categories.", ) diff --git a/maintenance_equipment_status/tests/test_maintenance_equipment_status.py b/maintenance_equipment_status/tests/test_maintenance_equipment_status.py index 5d6c73970..87e67c2fc 100644 --- a/maintenance_equipment_status/tests/test_maintenance_equipment_status.py +++ b/maintenance_equipment_status/tests/test_maintenance_equipment_status.py @@ -5,33 +5,27 @@ class TestMaintenanceEquipmentStatus(common.TransactionCase): - def setUp(self): super(TestMaintenanceEquipmentStatus, self).setUp() - self.Equipment = self.env['maintenance.equipment'] - self.EquipmentStatus = self.env['maintenance.equipment.status'] - self.Category = self.env['maintenance.equipment.category'] - self.Template = self.env['mail.template'] - self.equipment_category = self.Category.create({ - 'name': 'Equipment Category', - }) + self.Equipment = self.env["maintenance.equipment"] + self.EquipmentStatus = self.env["maintenance.equipment.status"] + self.Category = self.env["maintenance.equipment.category"] + self.Template = self.env["mail.template"] + self.equipment_category = self.Category.create({"name": "Equipment Category"}) - self.equipment1 = self.Equipment.create({ - 'name': 'Equipment 1', - 'category_id': self.equipment_category.id, - }) + self.equipment1 = self.Equipment.create( + {"name": "Equipment 1", "category_id": self.equipment_category.id} + ) - self.equipment2 = self.Equipment.create({ - 'name': 'Equipment 2', - 'category_id': self.equipment_category.id, - }) - self.equipment_status = self.EquipmentStatus.create({ - 'name': 'State 1', - 'category_ids': [(6, 0, self.equipment_category.ids)] - }) + self.equipment2 = self.Equipment.create( + {"name": "Equipment 2", "category_id": self.equipment_category.id} + ) + self.equipment_status = self.EquipmentStatus.create( + {"name": "State 1", "category_ids": [(6, 0, self.equipment_category.ids)]} + ) def test_01(self): status = self.EquipmentStatus.search([]) self.assertEqual(status, self.equipment_status) self.equipment1.status_id = self.equipment_status - self.assertEqual(self.equipment1.status_name, 'State 1') + self.assertEqual(self.equipment1.status_name, "State 1") From 99f60d8813ffd94d3e38a968fbe6fbb67488f850 Mon Sep 17 00:00:00 2001 From: Joan Sisquella Date: Mon, 2 Mar 2020 09:39:37 +0100 Subject: [PATCH 07/19] [MIG] maintenance_equipment_status: Migration to 13.0 --- maintenance_equipment_status/README.rst | 12 ++-- maintenance_equipment_status/__manifest__.py | 4 +- maintenance_equipment_status/i18n/es.po | 1 - .../i18n/maintenance_equipment_status.pot | 11 ++-- .../static/description/index.html | 8 +-- .../maintenance_equipment_status_views.xml | 62 +++++++++++-------- .../views/maintenance_equipment_views.xml | 28 ++++----- 7 files changed, 69 insertions(+), 57 deletions(-) diff --git a/maintenance_equipment_status/README.rst b/maintenance_equipment_status/README.rst index 3b6cf5a6e..37234f756 100644 --- a/maintenance_equipment_status/README.rst +++ b/maintenance_equipment_status/README.rst @@ -14,13 +14,13 @@ Maintenance Equipment Status :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmaintenance-lightgray.png?logo=github - :target: https://github.com/OCA/maintenance/tree/12.0/maintenance_equipment_status + :target: https://github.com/OCA/maintenance/tree/13.0/maintenance_equipment_status :alt: OCA/maintenance .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/maintenance-12-0/maintenance-12-0-maintenance_equipment_status + :target: https://translation.odoo-community.org/projects/maintenance-13-0/maintenance-13-0-maintenance_equipment_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/240/12.0 + :target: https://runbot.odoo-community.org/runbot/240/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,7 +38,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. @@ -48,7 +48,7 @@ Credits Authors ~~~~~~~ -* Eficent +* ForgeFlow Contributors ~~~~~~~~~~~~ @@ -69,6 +69,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/maintenance `_ project on GitHub. +This module is part of the `OCA/maintenance `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/maintenance_equipment_status/__manifest__.py b/maintenance_equipment_status/__manifest__.py index 9b5bdbda6..365598f03 100644 --- a/maintenance_equipment_status/__manifest__.py +++ b/maintenance_equipment_status/__manifest__.py @@ -2,9 +2,9 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { "name": "Maintenance Equipment Status", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "", - "author": "Eficent, Odoo Community Association (OCA)", + "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "http://github.com/OCA/maintenance", "license": "LGPL-3", "depends": ["base_maintenance"], diff --git a/maintenance_equipment_status/i18n/es.po b/maintenance_equipment_status/i18n/es.po index a9474efa6..3cd63c996 100644 --- a/maintenance_equipment_status/i18n/es.po +++ b/maintenance_equipment_status/i18n/es.po @@ -87,7 +87,6 @@ msgstr "??ltima Actualizaci??n el" #. module: maintenance_equipment_status #: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment #, fuzzy -#| msgid "Maintenance Equipment Status" msgid "Maintenance Equipment" msgstr "Estados de Equipos" diff --git a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot index b108aa741..ee22e8d6e 100644 --- a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot +++ b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * maintenance_equipment_status +# * maintenance_equipment_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" @@ -119,11 +119,12 @@ msgstr "" #. module: maintenance_equipment_status #: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status__category_ids -msgid "When set, this status will only be applicable to the equipments under these categories." +msgid "" +"When set, this status will only be applicable to the equipments under these " +"categories." msgstr "" #. module: maintenance_equipment_status #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form msgid "e.g. Operational" msgstr "" - diff --git a/maintenance_equipment_status/static/description/index.html b/maintenance_equipment_status/static/description/index.html index 7b3eecb2b..6adabd867 100644 --- a/maintenance_equipment_status/static/description/index.html +++ b/maintenance_equipment_status/static/description/index.html @@ -367,7 +367,7 @@

Maintenance Equipment Status

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

Beta License: LGPL-3 OCA/maintenance Translate me on Weblate Try me on Runbot

+

Beta License: LGPL-3 OCA/maintenance Translate me on Weblate Try me on Runbot

This module allows to indicate status of an equipment.

Table of contents

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

@@ -394,7 +394,7 @@

Credits

Authors

    -
  • Eficent
  • +
  • ForgeFlow
@@ -411,7 +411,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

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

+

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

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

diff --git a/maintenance_equipment_status/views/maintenance_equipment_status_views.xml b/maintenance_equipment_status/views/maintenance_equipment_status_views.xml index 0bf5c6135..1486186e0 100644 --- a/maintenance_equipment_status/views/maintenance_equipment_status_views.xml +++ b/maintenance_equipment_status/views/maintenance_equipment_status_views.xml @@ -1,77 +1,89 @@ - + - maintenance.equipment.status.form maintenance.equipment.status
-
+
-
-
- +
- - + +
- maintenance.equipment.status.tree maintenance.equipment.status - - - + + + - maintenance.equipment.status.search maintenance.equipment.status - - - + + + - Equipment Statuses maintenance.equipment.status - form - + -

+

Click to set a new status for your equipments.

- - + groups="maintenance.group_equipment_manager" + /> diff --git a/maintenance_equipment_status/views/maintenance_equipment_views.xml b/maintenance_equipment_status/views/maintenance_equipment_views.xml index 303a0ec9b..3af721266 100644 --- a/maintenance_equipment_status/views/maintenance_equipment_views.xml +++ b/maintenance_equipment_status/views/maintenance_equipment_views.xml @@ -1,44 +1,44 @@ - + - equipment.form maintenance.equipment - + - + - equipment.tree maintenance.equipment - + - + - equipment.kanban maintenance.equipment - + - + -
- +
+
- From 5cc7904038e8c52d00f4e8b6bd609661aaa87e72 Mon Sep 17 00:00:00 2001 From: "David Alonso (Solvos)" Date: Sun, 4 Oct 2020 11:22:24 +0200 Subject: [PATCH 08/19] [FIX] maintenance_equipment_status: status not clickable on equipment form --- maintenance_equipment_status/__manifest__.py | 2 +- .../views/maintenance_equipment_views.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance_equipment_status/__manifest__.py b/maintenance_equipment_status/__manifest__.py index 365598f03..cae3e40ae 100644 --- a/maintenance_equipment_status/__manifest__.py +++ b/maintenance_equipment_status/__manifest__.py @@ -2,7 +2,7 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { "name": "Maintenance Equipment Status", - "version": "13.0.1.0.0", + "version": "13.0.1.0.1", "category": "", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "http://github.com/OCA/maintenance", diff --git a/maintenance_equipment_status/views/maintenance_equipment_views.xml b/maintenance_equipment_status/views/maintenance_equipment_views.xml index 3af721266..ee5e27379 100644 --- a/maintenance_equipment_status/views/maintenance_equipment_views.xml +++ b/maintenance_equipment_status/views/maintenance_equipment_views.xml @@ -10,7 +10,7 @@ From 2619d6c9aacd3bb83e90174d0564ce9f3ba90001 Mon Sep 17 00:00:00 2001 From: David Alonso Date: Tue, 1 Dec 2020 18:22:17 +0100 Subject: [PATCH 09/19] [IMP] maintenance_equipment_status: black, isort, prettier --- maintenance_equipment_status/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance_equipment_status/__manifest__.py b/maintenance_equipment_status/__manifest__.py index cae3e40ae..3af35e30e 100644 --- a/maintenance_equipment_status/__manifest__.py +++ b/maintenance_equipment_status/__manifest__.py @@ -5,7 +5,7 @@ "version": "13.0.1.0.1", "category": "", "author": "ForgeFlow, Odoo Community Association (OCA)", - "website": "http://github.com/OCA/maintenance", + "website": "https://github.com/OCA/maintenance", "license": "LGPL-3", "depends": ["base_maintenance"], "data": [ From 34b8d594037ef24f472110fdb09fabceae74cd28 Mon Sep 17 00:00:00 2001 From: David Alonso Date: Wed, 2 Dec 2020 08:50:38 +0100 Subject: [PATCH 10/19] [MIG] maintenance_equipment_status: Migration to 14.0 --- maintenance_equipment_status/README.rst | 13 ++++---- maintenance_equipment_status/__manifest__.py | 3 +- .../demo_maintenance_equipment_status.xml | 33 +++++++++++++++++++ .../i18n/maintenance_equipment_status.pot | 10 +++--- .../models/maintenance_equipment.py | 5 +-- .../readme/CONTRIBUTORS.rst | 3 +- .../static/description/index.html | 9 ++--- .../tests/__init__.py | 1 - .../test_maintenance_equipment_status.py | 31 ----------------- .../views/maintenance_equipment_views.xml | 6 ++-- 10 files changed, 57 insertions(+), 57 deletions(-) create mode 100644 maintenance_equipment_status/data/demo_maintenance_equipment_status.xml delete mode 100644 maintenance_equipment_status/tests/__init__.py delete mode 100644 maintenance_equipment_status/tests/test_maintenance_equipment_status.py diff --git a/maintenance_equipment_status/README.rst b/maintenance_equipment_status/README.rst index 37234f756..f3e0e1ad1 100644 --- a/maintenance_equipment_status/README.rst +++ b/maintenance_equipment_status/README.rst @@ -14,13 +14,13 @@ Maintenance Equipment Status :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmaintenance-lightgray.png?logo=github - :target: https://github.com/OCA/maintenance/tree/13.0/maintenance_equipment_status + :target: https://github.com/OCA/maintenance/tree/14.0/maintenance_equipment_status :alt: OCA/maintenance .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/maintenance-13-0/maintenance-13-0-maintenance_equipment_status + :target: https://translation.odoo-community.org/projects/maintenance-14-0/maintenance-14-0-maintenance_equipment_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/240/13.0 + :target: https://runbot.odoo-community.org/runbot/240/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,7 +38,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. @@ -53,8 +53,9 @@ Authors Contributors ~~~~~~~~~~~~ -* Adri?? Gil +* Adriá Gil * Jordi Ballester Alomar +* David Alonso Maintainers ~~~~~~~~~~~ @@ -69,6 +70,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/maintenance `_ project on GitHub. +This module is part of the `OCA/maintenance `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/maintenance_equipment_status/__manifest__.py b/maintenance_equipment_status/__manifest__.py index 3af35e30e..af1e589c3 100644 --- a/maintenance_equipment_status/__manifest__.py +++ b/maintenance_equipment_status/__manifest__.py @@ -2,7 +2,7 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { "name": "Maintenance Equipment Status", - "version": "13.0.1.0.1", + "version": "14.0.1.0.0", "category": "", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/maintenance", @@ -13,6 +13,7 @@ "views/maintenance_equipment_status_views.xml", "views/maintenance_equipment_views.xml", ], + "demo": ["data/demo_maintenance_equipment_status.xml"], "installable": True, "auto_install": False, "application": False, diff --git a/maintenance_equipment_status/data/demo_maintenance_equipment_status.xml b/maintenance_equipment_status/data/demo_maintenance_equipment_status.xml new file mode 100644 index 000000000..184088566 --- /dev/null +++ b/maintenance_equipment_status/data/demo_maintenance_equipment_status.xml @@ -0,0 +1,33 @@ + + + + + New + + + + Working + + + + Retired + + + + + + + + + + + diff --git a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot index ee22e8d6e..29944e5c0 100644 --- a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot +++ b/maintenance_equipment_status/i18n/maintenance_equipment_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" @@ -44,6 +44,7 @@ msgid "Created on" msgstr "" #. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__display_name #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__display_name msgid "Display Name" msgstr "" @@ -62,11 +63,13 @@ msgid "Equipment Statuses" msgstr "" #. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__id #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__id msgid "ID" msgstr "" #. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment____last_update #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status____last_update msgid "Last Modified on" msgstr "" @@ -112,11 +115,6 @@ msgstr "" msgid "Status" msgstr "" -#. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__status_name -msgid "Status name" -msgstr "" - #. module: maintenance_equipment_status #: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status__category_ids msgid "" diff --git a/maintenance_equipment_status/models/maintenance_equipment.py b/maintenance_equipment_status/models/maintenance_equipment.py index 0235a8db1..d9c98cd4e 100644 --- a/maintenance_equipment_status/models/maintenance_equipment.py +++ b/maintenance_equipment_status/models/maintenance_equipment.py @@ -10,8 +10,5 @@ class MaintenanceEquipment(models.Model): status_id = fields.Many2one( string="Status", comodel_name="maintenance.equipment.status", - track_visibility="onchange", - ) - status_name = fields.Char( - string="Status name", related="status_id.name", store=True + tracking=True, ) diff --git a/maintenance_equipment_status/readme/CONTRIBUTORS.rst b/maintenance_equipment_status/readme/CONTRIBUTORS.rst index a0a4dbd6b..4cda07051 100644 --- a/maintenance_equipment_status/readme/CONTRIBUTORS.rst +++ b/maintenance_equipment_status/readme/CONTRIBUTORS.rst @@ -1,2 +1,3 @@ -* Adri?? Gil +* Adriá Gil * Jordi Ballester Alomar +* David Alonso diff --git a/maintenance_equipment_status/static/description/index.html b/maintenance_equipment_status/static/description/index.html index 6adabd867..6ab3742d8 100644 --- a/maintenance_equipment_status/static/description/index.html +++ b/maintenance_equipment_status/static/description/index.html @@ -367,7 +367,7 @@

Maintenance Equipment Status

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

Beta License: LGPL-3 OCA/maintenance Translate me on Weblate Try me on Runbot

+

Beta License: LGPL-3 OCA/maintenance Translate me on Weblate Try me on Runbot

This module allows to indicate status of an equipment.

Table of contents

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

@@ -400,8 +400,9 @@

Authors

Contributors

@@ -411,7 +412,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

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

+

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

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

diff --git a/maintenance_equipment_status/tests/__init__.py b/maintenance_equipment_status/tests/__init__.py deleted file mode 100644 index d8617c570..000000000 --- a/maintenance_equipment_status/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import test_maintenance_equipment_status diff --git a/maintenance_equipment_status/tests/test_maintenance_equipment_status.py b/maintenance_equipment_status/tests/test_maintenance_equipment_status.py deleted file mode 100644 index 87e67c2fc..000000000 --- a/maintenance_equipment_status/tests/test_maintenance_equipment_status.py +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2020 ForgeFlow S.L. (https://forgeflow.com) -# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). - -from odoo.tests import common - - -class TestMaintenanceEquipmentStatus(common.TransactionCase): - def setUp(self): - super(TestMaintenanceEquipmentStatus, self).setUp() - self.Equipment = self.env["maintenance.equipment"] - self.EquipmentStatus = self.env["maintenance.equipment.status"] - self.Category = self.env["maintenance.equipment.category"] - self.Template = self.env["mail.template"] - self.equipment_category = self.Category.create({"name": "Equipment Category"}) - - self.equipment1 = self.Equipment.create( - {"name": "Equipment 1", "category_id": self.equipment_category.id} - ) - - self.equipment2 = self.Equipment.create( - {"name": "Equipment 2", "category_id": self.equipment_category.id} - ) - self.equipment_status = self.EquipmentStatus.create( - {"name": "State 1", "category_ids": [(6, 0, self.equipment_category.ids)]} - ) - - def test_01(self): - status = self.EquipmentStatus.search([]) - self.assertEqual(status, self.equipment_status) - self.equipment1.status_id = self.equipment_status - self.assertEqual(self.equipment1.status_name, "State 1") diff --git a/maintenance_equipment_status/views/maintenance_equipment_views.xml b/maintenance_equipment_status/views/maintenance_equipment_views.xml index ee5e27379..9b9398b5d 100644 --- a/maintenance_equipment_status/views/maintenance_equipment_views.xml +++ b/maintenance_equipment_status/views/maintenance_equipment_views.xml @@ -32,11 +32,11 @@ - + -
- +
+
From be858c93098dea601e6946853af05a686fca6b85 Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 28 Jul 2021 09:04:10 +0000 Subject: [PATCH 11/19] Added translation using Weblate (Italian) --- maintenance_equipment_status/i18n/it.po | 129 ++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 maintenance_equipment_status/i18n/it.po diff --git a/maintenance_equipment_status/i18n/it.po b/maintenance_equipment_status/i18n/it.po new file mode 100644 index 000000000..330835de4 --- /dev/null +++ b/maintenance_equipment_status/i18n/it.po @@ -0,0 +1,129 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * maintenance_equipment_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: it\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: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__active +msgid "Active" +msgstr "" + +#. module: maintenance_equipment_status +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search +msgid "Archived" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__category_ids +msgid "Categories" +msgstr "" + +#. module: maintenance_equipment_status +#: model_terms:ir.actions.act_window,help:maintenance_equipment_status.maintenance_equipment_status_action +msgid "Click to set a new status for your equipments." +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__create_uid +msgid "Created by" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__create_date +msgid "Created on" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__display_name +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__display_name +msgid "Display Name" +msgstr "" + +#. module: maintenance_equipment_status +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_tree +msgid "Equipment Status" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.actions.act_window,name:maintenance_equipment_status.maintenance_equipment_status_action +#: model:ir.ui.menu,name:maintenance_equipment_status.menu_maintenance_equipment_status_act +msgid "Equipment Statuses" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__id +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__id +msgid "ID" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment____last_update +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status____last_update +msgid "Last Modified on" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__write_date +msgid "Last Updated on" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment +msgid "Maintenance Equipment" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment_status +msgid "Maintenance Equipment Status" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__name +msgid "Name" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__note +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +msgid "Notes" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__sequence +msgid "Sequence" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__status_id +msgid "Status" +msgstr "" + +#. module: maintenance_equipment_status +#: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status__category_ids +msgid "" +"When set, this status will only be applicable to the equipments under these " +"categories." +msgstr "" + +#. module: maintenance_equipment_status +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form +msgid "e.g. Operational" +msgstr "" From 69854ac0fb9a26afa0351dbd00a4271103651e3a Mon Sep 17 00:00:00 2001 From: mymage Date: Wed, 28 Jul 2021 09:06:43 +0000 Subject: [PATCH 12/19] Translated using Weblate (Italian) Currently translated at 100.0% (21 of 21 strings) Translation: maintenance-14.0/maintenance-14.0-maintenance_equipment_status Translate-URL: https://translation.odoo-community.org/projects/maintenance-14-0/maintenance-14-0-maintenance_equipment_status/it/ --- maintenance_equipment_status/i18n/it.po | 46 ++++++++++++++----------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/maintenance_equipment_status/i18n/it.po b/maintenance_equipment_status/i18n/it.po index 330835de4..43900cd4f 100644 --- a/maintenance_equipment_status/i18n/it.po +++ b/maintenance_equipment_status/i18n/it.po @@ -6,115 +6,117 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2021-07-28 11:49+0000\n" +"Last-Translator: mymage \n" "Language-Team: none\n" "Language: it\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: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__active msgid "Active" -msgstr "" +msgstr "Attiva" #. module: maintenance_equipment_status #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search msgid "Archived" -msgstr "" +msgstr "Archiviata" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__category_ids msgid "Categories" -msgstr "" +msgstr "Categorie" #. module: maintenance_equipment_status #: model_terms:ir.actions.act_window,help:maintenance_equipment_status.maintenance_equipment_status_action msgid "Click to set a new status for your equipments." -msgstr "" +msgstr "Fare clic per impostare un nuovo stato per le attrezzature." #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__create_uid msgid "Created by" -msgstr "" +msgstr "Creato da" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__create_date msgid "Created on" -msgstr "" +msgstr "Creato il" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__display_name #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__display_name msgid "Display Name" -msgstr "" +msgstr "Nome visualizzato" #. module: maintenance_equipment_status #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_tree msgid "Equipment Status" -msgstr "" +msgstr "Stato attrezzatura" #. module: maintenance_equipment_status #: model:ir.actions.act_window,name:maintenance_equipment_status.maintenance_equipment_status_action #: model:ir.ui.menu,name:maintenance_equipment_status.menu_maintenance_equipment_status_act msgid "Equipment Statuses" -msgstr "" +msgstr "Stati attrezzatura" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__id #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__id msgid "ID" -msgstr "" +msgstr "ID" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment____last_update #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status____last_update msgid "Last Modified on" -msgstr "" +msgstr "Ultima modifica il" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Ultimo aggiornamento di" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__write_date msgid "Last Updated on" -msgstr "" +msgstr "Ultimo aggiornamento il" #. module: maintenance_equipment_status #: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment msgid "Maintenance Equipment" -msgstr "" +msgstr "Attrezzatura manutenzione" #. module: maintenance_equipment_status #: model:ir.model,name:maintenance_equipment_status.model_maintenance_equipment_status msgid "Maintenance Equipment Status" -msgstr "" +msgstr "Stato attrezzatura manutenzione" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__name msgid "Name" -msgstr "" +msgstr "Nome" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__note #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form msgid "Notes" -msgstr "" +msgstr "Note" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__sequence msgid "Sequence" -msgstr "" +msgstr "Sequenza" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__status_id msgid "Status" -msgstr "" +msgstr "Stato" #. module: maintenance_equipment_status #: model:ir.model.fields,help:maintenance_equipment_status.field_maintenance_equipment_status__category_ids @@ -122,8 +124,10 @@ msgid "" "When set, this status will only be applicable to the equipments under these " "categories." msgstr "" +"Quando impostato, questo stato potrà essere applicato solo alle attrezzature " +"di queste categorie." #. module: maintenance_equipment_status #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form msgid "e.g. Operational" -msgstr "" +msgstr "es. Operativo" From 1400448f0d43eef0dd70ca29c488fd1ea3231517 Mon Sep 17 00:00:00 2001 From: mariadforgeflow Date: Tue, 7 Dec 2021 13:05:28 +0100 Subject: [PATCH 13/19] [IMP] maintenance_equipment_status: black, isort, prettier --- .../demo_maintenance_equipment_status.xml | 22 +++++++++---------- .../models/maintenance_equipment_status.py | 6 ++--- .../maintenance_equipment_status_views.xml | 2 +- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/maintenance_equipment_status/data/demo_maintenance_equipment_status.xml b/maintenance_equipment_status/data/demo_maintenance_equipment_status.xml index 184088566..1664fe692 100644 --- a/maintenance_equipment_status/data/demo_maintenance_equipment_status.xml +++ b/maintenance_equipment_status/data/demo_maintenance_equipment_status.xml @@ -1,24 +1,23 @@ - - + + id="maintenance_equipment_status_1" + model="maintenance.equipment.status" + > New + id="maintenance_equipment_status_2" + model="maintenance.equipment.status" + > Working + id="maintenance_equipment_status_3" + model="maintenance.equipment.status" + > Retired @@ -29,5 +28,4 @@ - diff --git a/maintenance_equipment_status/models/maintenance_equipment_status.py b/maintenance_equipment_status/models/maintenance_equipment_status.py index 6245c759f..f9226ad36 100644 --- a/maintenance_equipment_status/models/maintenance_equipment_status.py +++ b/maintenance_equipment_status/models/maintenance_equipment_status.py @@ -10,9 +10,9 @@ class MaintenanceEquipmentStatus(models.Model): _order = "sequence" active = fields.Boolean(default=True) - name = fields.Char("Name") - note = fields.Text("Notes") - sequence = fields.Integer(string="Sequence", default=10) + name = fields.Char() + note = fields.Text() + sequence = fields.Integer(default=10) category_ids = fields.Many2many( string="Categories", comodel_name="maintenance.equipment.category", diff --git a/maintenance_equipment_status/views/maintenance_equipment_status_views.xml b/maintenance_equipment_status/views/maintenance_equipment_status_views.xml index 1486186e0..97601354e 100644 --- a/maintenance_equipment_status/views/maintenance_equipment_status_views.xml +++ b/maintenance_equipment_status/views/maintenance_equipment_status_views.xml @@ -44,7 +44,7 @@ maintenance.equipment.status.tree maintenance.equipment.status - + From 92b90e6ed92f8aff4ec5956a8a25a913b2aec11e Mon Sep 17 00:00:00 2001 From: mariadforgeflow Date: Tue, 7 Dec 2021 13:59:48 +0100 Subject: [PATCH 14/19] [MIG] maintenance_equipment_status: Migration to 15.0 --- maintenance_equipment_status/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance_equipment_status/__manifest__.py b/maintenance_equipment_status/__manifest__.py index af1e589c3..699d73c8c 100644 --- a/maintenance_equipment_status/__manifest__.py +++ b/maintenance_equipment_status/__manifest__.py @@ -2,7 +2,7 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { "name": "Maintenance Equipment Status", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "category": "", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/maintenance", From a4e9bc9fc321a9b51632eed7823fbb0febc80a55 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Tue, 15 Mar 2022 08:59:20 +0000 Subject: [PATCH 15/19] [UPD] Update maintenance_equipment_status.pot --- .../i18n/maintenance_equipment_status.pot | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot index 29944e5c0..dcc136c02 100644 --- a/maintenance_equipment_status/i18n/maintenance_equipment_status.pot +++ b/maintenance_equipment_status/i18n/maintenance_equipment_status.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -44,7 +44,6 @@ msgid "Created on" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__display_name #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__display_name msgid "Display Name" msgstr "" @@ -52,7 +51,6 @@ msgstr "" #. module: maintenance_equipment_status #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search -#: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_tree msgid "Equipment Status" msgstr "" @@ -63,13 +61,11 @@ msgid "Equipment Statuses" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment__id #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__id msgid "ID" msgstr "" #. module: maintenance_equipment_status -#: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment____last_update #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status____last_update msgid "Last Modified on" msgstr "" @@ -101,6 +97,10 @@ msgstr "" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__note +msgid "Note" +msgstr "" + +#. module: maintenance_equipment_status #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_form msgid "Notes" msgstr "" From be736a0daf2ec7f1f7534a204c15752be673b8ae Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 15 Mar 2022 09:02:10 +0000 Subject: [PATCH 16/19] [UPD] README.rst --- maintenance_equipment_status/README.rst | 10 +++++----- .../static/description/index.html | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/maintenance_equipment_status/README.rst b/maintenance_equipment_status/README.rst index f3e0e1ad1..9d58b7b18 100644 --- a/maintenance_equipment_status/README.rst +++ b/maintenance_equipment_status/README.rst @@ -14,13 +14,13 @@ Maintenance Equipment Status :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fmaintenance-lightgray.png?logo=github - :target: https://github.com/OCA/maintenance/tree/14.0/maintenance_equipment_status + :target: https://github.com/OCA/maintenance/tree/15.0/maintenance_equipment_status :alt: OCA/maintenance .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/maintenance-14-0/maintenance-14-0-maintenance_equipment_status + :target: https://translation.odoo-community.org/projects/maintenance-15-0/maintenance-15-0-maintenance_equipment_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/240/14.0 + :target: https://runbot.odoo-community.org/runbot/240/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -38,7 +38,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. @@ -70,6 +70,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/maintenance `_ project on GitHub. +This module is part of the `OCA/maintenance `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/maintenance_equipment_status/static/description/index.html b/maintenance_equipment_status/static/description/index.html index 6ab3742d8..9b8637e29 100644 --- a/maintenance_equipment_status/static/description/index.html +++ b/maintenance_equipment_status/static/description/index.html @@ -367,7 +367,7 @@

Maintenance Equipment Status

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

Beta License: LGPL-3 OCA/maintenance Translate me on Weblate Try me on Runbot

+

Beta License: LGPL-3 OCA/maintenance Translate me on Weblate Try me on Runbot

This module allows to indicate status of an equipment.

Table of contents

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

@@ -412,7 +412,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

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

+

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

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

From b4597cdc9c921061938f2ebc47dfa7f9bc4a62ee Mon Sep 17 00:00:00 2001 From: Francesco Foresti Date: Wed, 24 May 2023 15:33:40 +0000 Subject: [PATCH 17/19] Translated using Weblate (Italian) Currently translated at 100.0% (21 of 21 strings) Translation: maintenance-15.0/maintenance-15.0-maintenance_equipment_status Translate-URL: https://translation.odoo-community.org/projects/maintenance-15-0/maintenance-15-0-maintenance_equipment_status/it/ --- maintenance_equipment_status/i18n/it.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/maintenance_equipment_status/i18n/it.po b/maintenance_equipment_status/i18n/it.po index 43900cd4f..9ca5481a0 100644 --- a/maintenance_equipment_status/i18n/it.po +++ b/maintenance_equipment_status/i18n/it.po @@ -6,15 +6,15 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2021-07-28 11:49+0000\n" -"Last-Translator: mymage \n" +"PO-Revision-Date: 2023-05-24 18:09+0000\n" +"Last-Translator: Francesco Foresti \n" "Language-Team: none\n" "Language: it\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" +"X-Generator: Weblate 4.17\n" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__active @@ -24,7 +24,7 @@ msgstr "Attiva" #. module: maintenance_equipment_status #: model_terms:ir.ui.view,arch_db:maintenance_equipment_status.maintenance_equipment_status_view_search msgid "Archived" -msgstr "Archiviata" +msgstr "In archivio" #. module: maintenance_equipment_status #: model:ir.model.fields,field_description:maintenance_equipment_status.field_maintenance_equipment_status__category_ids From c4d19db891a2cd857d7951ff3eb66860fa21e476 Mon Sep 17 00:00:00 2001 From: Alessandro Uffreduzzi Date: Sat, 17 Jun 2023 21:53:37 +0200 Subject: [PATCH 18/19] [IMP] maintenance_equipment_status: pre-commit execution --- .../odoo/addons/maintenance_equipment_status | 1 + setup/maintenance_equipment_status/setup.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 120000 setup/maintenance_equipment_status/odoo/addons/maintenance_equipment_status create mode 100644 setup/maintenance_equipment_status/setup.py diff --git a/setup/maintenance_equipment_status/odoo/addons/maintenance_equipment_status b/setup/maintenance_equipment_status/odoo/addons/maintenance_equipment_status new file mode 120000 index 000000000..29567ae8a --- /dev/null +++ b/setup/maintenance_equipment_status/odoo/addons/maintenance_equipment_status @@ -0,0 +1 @@ +../../../../maintenance_equipment_status \ No newline at end of file diff --git a/setup/maintenance_equipment_status/setup.py b/setup/maintenance_equipment_status/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/maintenance_equipment_status/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From f7f0210dac0dfd8761094341a20747c3f99805f0 Mon Sep 17 00:00:00 2001 From: Alessandro Uffreduzzi Date: Sat, 17 Jun 2023 21:53:38 +0200 Subject: [PATCH 19/19] [MIG] maintenance_equipment_status: Migration to 16.0 --- maintenance_equipment_status/__manifest__.py | 2 +- .../maintenance_equipment_status_views.xml | 21 +++++++------------ 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/maintenance_equipment_status/__manifest__.py b/maintenance_equipment_status/__manifest__.py index 699d73c8c..15dd683ab 100644 --- a/maintenance_equipment_status/__manifest__.py +++ b/maintenance_equipment_status/__manifest__.py @@ -2,7 +2,7 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). { "name": "Maintenance Equipment Status", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "category": "", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/maintenance", diff --git a/maintenance_equipment_status/views/maintenance_equipment_status_views.xml b/maintenance_equipment_status/views/maintenance_equipment_status_views.xml index 97601354e..226f6a66a 100644 --- a/maintenance_equipment_status/views/maintenance_equipment_status_views.xml +++ b/maintenance_equipment_status/views/maintenance_equipment_status_views.xml @@ -7,20 +7,13 @@
-
- -
+ +