diff --git a/mrp_workorder_expiry/__init__.py b/mrp_workorder_expiry/__init__.py deleted file mode 100644 index dc5e6b69..00000000 --- a/mrp_workorder_expiry/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -from . import models diff --git a/mrp_workorder_expiry/__manifest__.py b/mrp_workorder_expiry/__manifest__.py deleted file mode 100644 index a65b3ac7..00000000 --- a/mrp_workorder_expiry/__manifest__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -{ - 'name': 'MRP II - Expiry', - 'version': '1.0', - 'category': 'Manufacturing/Manufacturing', - 'summary': 'MRP Workorder Expiry', - 'description': """ -Technical module. - """, - 'depends': ['mrp_workorder', 'product_expiry'], - 'data': [ - 'views/quality_views.xml', - 'wizard/confirm_expiry_view.xml', - ], - 'installable': True, - 'auto_install': True, - 'assets': { - 'web.assets_backend': [ - 'mrp_workorder_expiry/static/**/*', - ], - }, - 'license': 'OEEL-1', -} diff --git a/mrp_workorder_expiry/i18n/ar.po b/mrp_workorder_expiry/i18n/ar.po deleted file mode 100644 index 95241c36..00000000 --- a/mrp_workorder_expiry/i18n/ar.po +++ /dev/null @@ -1,41 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Arabic (https://www.transifex.com/odoo/teams/41243/ar/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: ar\n" -"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" -" لقد انتهت صلاحية هذه الدفعة. " - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "تنبيه انتهاء صلاحية المنتج" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "فحص الجودة" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "تم الوصول إلى تاريخ انتهاء الصلاحية. " diff --git a/mrp_workorder_expiry/i18n/az.po b/mrp_workorder_expiry/i18n/az.po deleted file mode 100644 index c7face15..00000000 --- a/mrp_workorder_expiry/i18n/az.po +++ /dev/null @@ -1,36 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Language-Team: Azerbaijani (https://www.transifex.com/odoo/teams/41243/az/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: az\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "" diff --git a/mrp_workorder_expiry/i18n/ca.po b/mrp_workorder_expiry/i18n/ca.po deleted file mode 100644 index 117f19fa..00000000 --- a/mrp_workorder_expiry/i18n/ca.po +++ /dev/null @@ -1,41 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Arnau Ros, 2022 -# marcescu, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: marcescu, 2022\n" -"Language-Team: Catalan (https://www.transifex.com/odoo/teams/41243/ca/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: ca\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "Aquest lot ha caducat. " - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Alerta de caducitat del producte" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Comprovació de qualitat" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "S'ha assolit la data de caducitat." diff --git a/mrp_workorder_expiry/i18n/cs.po b/mrp_workorder_expiry/i18n/cs.po deleted file mode 100644 index a77ccdf1..00000000 --- a/mrp_workorder_expiry/i18n/cs.po +++ /dev/null @@ -1,42 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# trendspotter , 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: trendspotter , 2022\n" -"Language-Team: Czech (https://www.transifex.com/odoo/teams/41243/cs/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: cs\n" -"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" -" Tomuto produktovému číslu " -"vypršela platnost" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Kontrola kvality" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "" diff --git a/mrp_workorder_expiry/i18n/de.po b/mrp_workorder_expiry/i18n/de.po deleted file mode 100644 index 9e847b42..00000000 --- a/mrp_workorder_expiry/i18n/de.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: German (https://www.transifex.com/odoo/teams/41243/de/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: de\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " Diese Charge ist abgelaufen." - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Produkt Ablaufmeldung" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Qualitätskontrolle" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "Das Ablaufdatum wurde erreicht." diff --git a/mrp_workorder_expiry/i18n/es.po b/mrp_workorder_expiry/i18n/es.po deleted file mode 100644 index 12ed3923..00000000 --- a/mrp_workorder_expiry/i18n/es.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Spanish (https://www.transifex.com/odoo/teams/41243/es/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: es\n" -"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " Este lote ha caducado." - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Alerta de caducidad del producto" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Control de calidad" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "Se llegó a la fecha de caducidad." diff --git a/mrp_workorder_expiry/i18n/es_MX.po b/mrp_workorder_expiry/i18n/es_MX.po deleted file mode 100644 index d9b59ed6..00000000 --- a/mrp_workorder_expiry/i18n/es_MX.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Braulio D. López Vázquez , 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Braulio D. López Vázquez , 2022\n" -"Language-Team: Spanish (Mexico) (https://www.transifex.com/odoo/teams/41243/es_MX/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: es_MX\n" -"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " Este lote expiró." - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Alerta de expiración del producto" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Control de calidad" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "Se llegó a la fecha de expiración." diff --git a/mrp_workorder_expiry/i18n/fr.po b/mrp_workorder_expiry/i18n/fr.po deleted file mode 100644 index e518cb44..00000000 --- a/mrp_workorder_expiry/i18n/fr.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: French (https://www.transifex.com/odoo/teams/41243/fr/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: fr\n" -"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " Ce lot est expiré." - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Alerte d'expiration de produit" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Contrôle qualité" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "La date d'expiration a été atteinte." diff --git a/mrp_workorder_expiry/i18n/he.po b/mrp_workorder_expiry/i18n/he.po deleted file mode 100644 index a8e1f6c1..00000000 --- a/mrp_workorder_expiry/i18n/he.po +++ /dev/null @@ -1,41 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# ZVI BLONDER , 2022 -# דודי מלכה , 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: דודי מלכה , 2022\n" -"Language-Team: Hebrew (https://www.transifex.com/odoo/teams/41243/he/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: he\n" -"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "התראת פקיעת תוקף מוצר" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "בדיקת איכות" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "" diff --git a/mrp_workorder_expiry/i18n/id.po b/mrp_workorder_expiry/i18n/id.po deleted file mode 100644 index d6507928..00000000 --- a/mrp_workorder_expiry/i18n/id.po +++ /dev/null @@ -1,36 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Language-Team: Indonesian (https://www.transifex.com/odoo/teams/41243/id/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: id\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "" diff --git a/mrp_workorder_expiry/i18n/it.po b/mrp_workorder_expiry/i18n/it.po deleted file mode 100644 index 2a117cb8..00000000 --- a/mrp_workorder_expiry/i18n/it.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Italian (https://www.transifex.com/odoo/teams/41243/it/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: it\n" -"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " Il lotto è scaduto." - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Avviso scadenza prodotto" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Controllo qualità" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "È stata raggiunta la data di scadenza." diff --git a/mrp_workorder_expiry/i18n/ja.po b/mrp_workorder_expiry/i18n/ja.po deleted file mode 100644 index f0439f21..00000000 --- a/mrp_workorder_expiry/i18n/ja.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Japanese (https://www.transifex.com/odoo/teams/41243/ja/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: ja\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "品質検査" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "" diff --git a/mrp_workorder_expiry/i18n/ko.po b/mrp_workorder_expiry/i18n/ko.po deleted file mode 100644 index 86380f8d..00000000 --- a/mrp_workorder_expiry/i18n/ko.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Korean (https://www.transifex.com/odoo/teams/41243/ko/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: ko\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "품목 만료 경고" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "품질 검사" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "유통기한이 임박했습니다." diff --git a/mrp_workorder_expiry/i18n/nb.po b/mrp_workorder_expiry/i18n/nb.po deleted file mode 100644 index c075fd28..00000000 --- a/mrp_workorder_expiry/i18n/nb.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Norwegian Bokmål (https://www.transifex.com/odoo/teams/41243/nb/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: nb\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Utløpsvarsel for produkt" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Kvalitetskontroll" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "" diff --git a/mrp_workorder_expiry/i18n/nl.po b/mrp_workorder_expiry/i18n/nl.po deleted file mode 100644 index 4980fe1f..00000000 --- a/mrp_workorder_expiry/i18n/nl.po +++ /dev/null @@ -1,41 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# Erwin van der Ploeg , 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Erwin van der Ploeg , 2022\n" -"Language-Team: Dutch (https://www.transifex.com/odoo/teams/41243/nl/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: nl\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " Deze partij is vervallen." - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Product vervalwaarschuwing" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Kwaliteitscontrole" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "De vervaldatum is bereikt." diff --git a/mrp_workorder_expiry/i18n/ro.po b/mrp_workorder_expiry/i18n/ro.po deleted file mode 100644 index 63ec4973..00000000 --- a/mrp_workorder_expiry/i18n/ro.po +++ /dev/null @@ -1,41 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Foldi Robert , 2022 -# Hongu Cosmin , 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Hongu Cosmin , 2022\n" -"Language-Team: Romanian (https://www.transifex.com/odoo/teams/41243/ro/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: ro\n" -"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Verificare Calitate" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "Data de expirare a fost atinsă." diff --git a/mrp_workorder_expiry/i18n/ru.po b/mrp_workorder_expiry/i18n/ru.po deleted file mode 100644 index 185f4f0c..00000000 --- a/mrp_workorder_expiry/i18n/ru.po +++ /dev/null @@ -1,41 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Ivan Kropotkin , 2022 -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Russian (https://www.transifex.com/odoo/teams/41243/ru/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: ru\n" -"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Оповещения об окончании срока действия товара" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Проверка качества" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "" diff --git a/mrp_workorder_expiry/i18n/th.po b/mrp_workorder_expiry/i18n/th.po deleted file mode 100644 index c4fb1d82..00000000 --- a/mrp_workorder_expiry/i18n/th.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Wichanon Jamwutthipreecha, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Wichanon Jamwutthipreecha, 2022\n" -"Language-Team: Thai (https://www.transifex.com/odoo/teams/41243/th/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: th\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " ล็อตนี้หมดอายุแล้ว" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "การแจ้งเตือนการหมดอายุของสินค้า" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "การตรวจสอบคุณภาพ" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "ถึงวันที่หมดอายุแล้ว" diff --git a/mrp_workorder_expiry/i18n/tr.po b/mrp_workorder_expiry/i18n/tr.po deleted file mode 100644 index 32375263..00000000 --- a/mrp_workorder_expiry/i18n/tr.po +++ /dev/null @@ -1,43 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Tugay Hatıl , 2022 -# Umur Akın , 2022 -# Murat Kaplan , 2022 -# abc Def , 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: abc Def , 2022\n" -"Language-Team: Turkish (https://www.transifex.com/odoo/teams/41243/tr/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: tr\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " Bu lotun süresi doldu." - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Ürün Son Kullanım Uyarısı" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Kalite Kontrol" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "Süresi Dolma Tarihine ulaşıldı." diff --git a/mrp_workorder_expiry/i18n/uk.po b/mrp_workorder_expiry/i18n/uk.po deleted file mode 100644 index c052fb72..00000000 --- a/mrp_workorder_expiry/i18n/uk.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Ukrainian (https://www.transifex.com/odoo/teams/41243/uk/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: uk\n" -"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " Ця партія протермінована." - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Попередження про закінчення терміну дії товару" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Перевірка якості" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "Термін дії завершився." diff --git a/mrp_workorder_expiry/i18n/vi.po b/mrp_workorder_expiry/i18n/vi.po deleted file mode 100644 index 0d106355..00000000 --- a/mrp_workorder_expiry/i18n/vi.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Vietnamese (https://www.transifex.com/odoo/teams/41243/vi/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: vi\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " Lô hàng đã hết hạn. " - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "Cảnh báo hết hạn sản phẩm" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "Đánh giá chất lượng" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "The Expiration Date has been reached." diff --git a/mrp_workorder_expiry/i18n/zh_CN.po b/mrp_workorder_expiry/i18n/zh_CN.po deleted file mode 100644 index 953d0479..00000000 --- a/mrp_workorder_expiry/i18n/zh_CN.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: zh_CN\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr " 这批货过期了。" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "过期警报" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "质量检查" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "已到达过期日期。" diff --git a/mrp_workorder_expiry/i18n/zh_TW.po b/mrp_workorder_expiry/i18n/zh_TW.po deleted file mode 100644 index d80778ad..00000000 --- a/mrp_workorder_expiry/i18n/zh_TW.po +++ /dev/null @@ -1,40 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_expiry -# -# Translators: -# Martin Trigaux, 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Martin Trigaux, 2022\n" -"Language-Team: Chinese (Taiwan) (https://www.transifex.com/odoo/teams/41243/zh_TW/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: zh_TW\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#. module: mrp_workorder_expiry -#: model_terms:ir.ui.view,arch_db:mrp_workorder_expiry.quality_check_view_form_tablet_inherit_expiry -msgid " This lot is expired." -msgstr "" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,field_description:mrp_workorder_expiry.field_quality_check__is_expired -msgid "Product Expiry Alert" -msgstr "產品過期警告" - -#. module: mrp_workorder_expiry -#: model:ir.model,name:mrp_workorder_expiry.model_quality_check -msgid "Quality Check" -msgstr "品質檢查" - -#. module: mrp_workorder_expiry -#: model:ir.model.fields,help:mrp_workorder_expiry.field_quality_check__is_expired -msgid "The Expiration Date has been reached." -msgstr "已到到期日。" diff --git a/mrp_workorder_expiry/models/__init__.py b/mrp_workorder_expiry/models/__init__.py deleted file mode 100644 index c62a7b4e..00000000 --- a/mrp_workorder_expiry/models/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -from . import quality diff --git a/mrp_workorder_expiry/models/quality.py b/mrp_workorder_expiry/models/quality.py deleted file mode 100644 index 8d31fbed..00000000 --- a/mrp_workorder_expiry/models/quality.py +++ /dev/null @@ -1,10 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -from odoo import fields, models - - -class QualityCheck(models.Model): - _inherit = 'quality.check' - - is_expired = fields.Boolean(related='lot_id.product_expiry_alert') diff --git a/mrp_workorder_expiry/static/src/scss/expired_alert.scss b/mrp_workorder_expiry/static/src/scss/expired_alert.scss deleted file mode 100644 index 2385d18a..00000000 --- a/mrp_workorder_expiry/static/src/scss/expired_alert.scss +++ /dev/null @@ -1,5 +0,0 @@ -.o_expired_alert { - padding-left: 20px; - text-align: right; - color: orangered; -} diff --git a/mrp_workorder_expiry/views/quality_views.xml b/mrp_workorder_expiry/views/quality_views.xml deleted file mode 100644 index 5dcefea9..00000000 --- a/mrp_workorder_expiry/views/quality_views.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - quality.check.tablet.view.form.inherit.expiry - quality.check - - - - -
- This lot is expired. -
-
-
-
- -
diff --git a/mrp_workorder_expiry/wizard/confirm_expiry_view.xml b/mrp_workorder_expiry/wizard/confirm_expiry_view.xml deleted file mode 100644 index 0d051e52..00000000 --- a/mrp_workorder_expiry/wizard/confirm_expiry_view.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - mrp.workorder.tablet.view.expiry.inherit - mrp.workorder - - - - {'skip_expired': True} - - - {'skip_expired': True} - - - - diff --git a/mrp_workorder_hr/__init__.py b/mrp_workorder_hr/__init__.py deleted file mode 100644 index de9509a6..00000000 --- a/mrp_workorder_hr/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -# -*- coding: utf-8 -*- - -from . import models -from . import report -from . import wizard diff --git a/mrp_workorder_hr/__manifest__.py b/mrp_workorder_hr/__manifest__.py deleted file mode 100644 index 077992c8..00000000 --- a/mrp_workorder_hr/__manifest__.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -{ - 'name': "Employees time registration on Work Orders", - 'category': "Hidden", - 'summary': 'Link module between Mrp II and HR employees', - - 'description': """ -This module allows Employees (and not users) to log in to a workorder using a barcode, a PIN number or both. -The actual till still requires one user but an unlimited number of employees can log on to that till and complete manufacturing tasks. - """, - - 'depends': ['mrp_workorder', 'hr_hourly_cost', 'hr'], - - 'data': [ - 'views/hr_employee_views.xml', - 'views/mrp_workorder_views.xml', - 'views/mrp_workcenter_views.xml', - 'views/mrp_operation_views.xml', - ], - 'installable': True, - 'auto_install': ['mrp_workorder', 'hr'], - 'assets': { - 'web.assets_backend': [ - 'mrp_workorder_hr/static/src/**/*.js', - 'mrp_workorder_hr/static/src/**/*.scss', - 'mrp_workorder_hr/static/src/**/*.xml', - ], - 'web.assets_tests': [ - 'mrp_workorder_hr/static/tests/tours/**/*', - ], - }, - 'license': 'OEEL-1', -} diff --git a/mrp_workorder_hr/i18n/ar.po b/mrp_workorder_hr/i18n/ar.po deleted file mode 100644 index 90fa4e6b..00000000 --- a/mrp_workorder_hr/i18n/ar.po +++ /dev/null @@ -1,235 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * mrp_workorder_hr -# -# Translators: -# Martin Trigaux, 2022 -# Malaz Abuidris , 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: Malaz Abuidris , 2022\n" -"Language-Team: Arabic (https://www.transifex.com/odoo/teams/41243/ar/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: ar\n" -"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" - -#. module: mrp_workorder_hr -#. openerp-web -#: code:addons/mrp_workorder_hr/static/src/components/working_employee_popup.xml:0 -#, python-format -msgid "+ New Operator" -msgstr "" - -#. module: mrp_workorder_hr -#: model_terms:ir.ui.view,arch_db:mrp_workorder_hr.mrp_workorder_view_tablet_form_inherit_workorder_hr -msgid "" -", 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: trendspotter , 2022\n" -"Language-Team: Czech (https://www.transifex.com/odoo/teams/41243/cs/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: cs\n" -"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" - -#. module: mrp_workorder_hr -#. openerp-web -#: code:addons/mrp_workorder_hr/static/src/components/working_employee_popup.xml:0 -#, python-format -msgid "+ New Operator" -msgstr "" - -#. module: mrp_workorder_hr -#: model_terms:ir.ui.view,arch_db:mrp_workorder_hr.mrp_workorder_view_tablet_form_inherit_workorder_hr -msgid "" -", 2022 -# ExcaliberX , 2022 -# Martin Trigaux, 2022 -# hed shefer , 2022 -# שהאב חוסיין , 2022 -# Yihya Hugirat , 2022 -# דודי מלכה , 2022 -# ZVI BLONDER , 2022 -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 15.5alpha1+e\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-09-20 09:49+0000\n" -"PO-Revision-Date: 2022-09-22 05:47+0000\n" -"Last-Translator: ZVI BLONDER , 2022\n" -"Language-Team: Hebrew (https://www.transifex.com/odoo/teams/41243/he/)\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Language: he\n" -"Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n == 2 && n % 1 == 0) ? 1: (n % 10 == 0 && n % 1 == 0 && n > 10) ? 2 : 3;\n" - -#. module: mrp_workorder_hr -#. openerp-web -#: code:addons/mrp_workorder_hr/static/src/components/working_employee_popup.xml:0 -#, python-format -msgid "+ New Operator" -msgstr "" - -#. module: mrp_workorder_hr -#: model_terms:ir.ui.view,arch_db:mrp_workorder_hr.mrp_workorder_view_tablet_form_inherit_workorder_hr -msgid "" -" - - -
- -
-
-
diff --git a/mrp_workorder_hr/static/src/components/popup.js b/mrp_workorder_hr/static/src/components/popup.js deleted file mode 100644 index 44b92f61..00000000 --- a/mrp_workorder_hr/static/src/components/popup.js +++ /dev/null @@ -1,25 +0,0 @@ -/** @odoo-module **/ - -const { Component } = owl; - -export class SelectionPopup extends Component { - - get title() { - return this.props.popupData.title; - } - - get list() { - return this.props.popupData.list; - } - - cancel() { - this.props.onClosePopup('SelectionPopup', true); - } - - async selectItem(id) { - await this.props.onSelectEmployee(id); - this.props.onClosePopup('SelectionPopup'); - } -} - -SelectionPopup.template = 'mrp_workorder_hr.SelectionPopup'; diff --git a/mrp_workorder_hr/static/src/components/popup.xml b/mrp_workorder_hr/static/src/components/popup.xml deleted file mode 100644 index 7bac9a0e..00000000 --- a/mrp_workorder_hr/static/src/components/popup.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - diff --git a/mrp_workorder_hr/static/src/components/tablet.js b/mrp_workorder_hr/static/src/components/tablet.js deleted file mode 100644 index a129c0b8..00000000 --- a/mrp_workorder_hr/static/src/components/tablet.js +++ /dev/null @@ -1,156 +0,0 @@ -/** @odoo-module **/ - -import { useBus, useService } from "@web/core/utils/hooks"; -import Tablet from '@mrp_workorder/components/tablet'; -import { SelectionPopup } from '@mrp_workorder_hr/components/popup'; -import { WorkingEmployeePopup } from '@mrp_workorder_hr/components/working_employee_popup'; -import { patch } from 'web.utils'; -import { PinPopup } from '@mrp_workorder_hr/components/pin_popup'; - -const { onMounted } = owl; - -patch(Tablet.prototype, 'mrp_workorder_hr', { - setup() { - this._super(); - this.notification = useService("notification"); - this.popup.SelectionPopup = { - isShown: false, - data: {}, - }; - this.popup.PinPopup = { - isShown: false, - data: {}, - }; - this.popup.WorkingEmployeePopup = { - isShown: false, - data: {}, - }; - this.state.tabletEmployeeIds = []; - this.employee = this.props.action.context.employee_id; - this.actionRedirect = false; - useBus(this.workorderBus, "popupEmployeeManagement", this.popupEmployeeManagement); - onMounted(() => this.checkEmployeeLogged()); - }, - - checkEmployeeLogged() { - if (this.data.employee_list.length && !this.data.employee && !this.employee) { - this.popupAddEmployee(); - } - }, - // Popup Menu Actions - - popupEmployeeManagement() { - this.showPopup({ workorderId: this.workorderId }, 'WorkingEmployeePopup'); - }, - - popupAddEmployee() { - const list = this.data.employee_list.filter(e => ! this.data.employee_ids.includes(e.id)).map((employee) => { - return { - id: employee.id, - item: employee, - label: employee.name, - isSelected: false, - }; - }); - const title = this.env._t('Change Worker'); - this.showPopup({ title, list }, 'SelectionPopup'); - }, - - popupEmployeePin(employeeId) { - const employee = this.data.employee_list.find(e => e.id === employeeId); - this.showPopup({ employee }, 'PinPopup'); - }, - - // Buisness method - - async lockEmployee(employeeId, pin) { - const pinValid = await this._checkPin(employeeId, pin); - if (! pinValid) { - this.actionRedirect = this.lockEmployee; - return; - } - this.render(); - }, - - async startEmployee(employeeId, pin) { - const pinValid = await this._checkPin(employeeId, pin); - if (! pinValid) { - this.actionRedirect = this.startEmployee; - return; - } - this.state.tabletEmployeeIds.push(employeeId); - await this.orm.call( - 'mrp.workorder', - 'start_employee', - [this.workorderId, employeeId], - ); - await this.getState(); - this.render(); - }, - - async stopEmployee(employeeId, pin) { - const pinValid = await this._checkPin(employeeId, pin, false); - if (! pinValid) { - this.actionRedirect = this.stopEmployee; - return; - } - const index = this.state.tabletEmployeeIds.indexOf(employeeId); - this.state.tabletEmployeeIds.slice(index, 1); - await this.orm.call( - 'mrp.workorder', - 'stop_employee', - [this.workorderId, employeeId], - ); - await this.getState(); - this.render(); - }, - - redirectToAction(employeeId, pin) { - this.actionRedirect(employeeId, pin); - this.actionRedirect = false; - }, - - get isBlocked() { - let isBlocked = this._super(); - if (this.data.employee_list.length !== 0 && ! this.data.employee_id) { - isBlocked = true; - } - return isBlocked; - }, - - // Private - - async _checkPin(employeeId, pin, sessionSave = true) { - const pinValid = await this.orm.call('hr.employee', 'login', [employeeId, pin, sessionSave]); - if (!pinValid) { - this.popupEmployeePin(employeeId); - return; - } - return true; - }, - - _onBarcodeScanned(barcode) { - const employee = this.data.employee_list.find(e => e.barcode === barcode); - if (employee) { - this.startEmployee(employee.id); - } else { - return this._super(barcode); - } - }, - - async _onWillStart() { - const superMethod = this._super; - const employeeId = this.props.action.context.employee_id; - if (employeeId) { - await this.startEmployee(employeeId); - } - await superMethod(); - if (employeeId) { - await this.getState(); - } - }, -}); - -Tablet.components.SelectionPopup = SelectionPopup; -Tablet.components.PinPopup = PinPopup; -Tablet.components.WorkingEmployeePopup = WorkingEmployeePopup; diff --git a/mrp_workorder_hr/static/src/components/tablet.xml b/mrp_workorder_hr/static/src/components/tablet.xml deleted file mode 100644 index 67d6a18a..00000000 --- a/mrp_workorder_hr/static/src/components/tablet.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - -
- -
-
- -
-
- -
-
-
-
diff --git a/mrp_workorder_hr/static/src/components/working_employee_popup.js b/mrp_workorder_hr/static/src/components/working_employee_popup.js deleted file mode 100644 index 4f8dbeb2..00000000 --- a/mrp_workorder_hr/static/src/components/working_employee_popup.js +++ /dev/null @@ -1,80 +0,0 @@ -/** @odoo-module **/ - -import { MrpTimer } from "@mrp/widgets/timer"; -import { useService } from "@web/core/utils/hooks"; -import time from 'web.time'; - -const { Component, onWillStart } = owl; - -export class WorkingEmployeePopup extends Component { - setup() { - super.setup(); - this.orm = useService('orm'); - this.workorderId = this.props.popupData.workorderId; - - onWillStart(() => this._getState()) - } - - addEmployee() { - this.props.onAddEmployee(); - this.close(); - } - - lockEmployee(employeeId) { - this.startEmployee(employeeId); - this.props.onLockEmployee(employeeId); - this.close(); - } - - async stopEmployee(employeeId) { - this.props.onStopEmployee(employeeId); - this.lines.map(l => { - if (l.employee_id === employeeId) { - l.ongoing = false; - } - }); - this.render(); - } - - startEmployee(employeeId) { - this.props.onStartEmployee(employeeId); - this.lines.map(l => { - if (l.employee_id === employeeId) { - l.ongoing = true; - } - }); - this.render(); - } - - close() { - this.props.onClosePopup('WorkingEmployeePopup', true); - } - - async _getState() { - const productivityLines = await this.orm.call('mrp.workcenter.productivity', 'read_group', [ - [ - ['workorder_id', '=', this.workorderId], - ['employee_id', '!=', false], - ], - ['duration', 'date_start:array_agg', 'date_end:array_agg'], - ['employee_id'] - ]); - this.lines = productivityLines.map((pl) => { - let duration = pl.duration * 60; - const ongoingTimerIndex = pl.date_end.indexOf(null); - if ( ongoingTimerIndex != -1 ){ - const additionalDuration = moment(new Date()).diff(moment(time.auto_str_to_date(pl.date_start[ongoingTimerIndex])), 'seconds'); - duration += additionalDuration; - } - return { - 'employee_id': pl.employee_id[0], - 'employee_name': pl.employee_id[1], - 'duration': duration, - 'ongoing': pl.date_end.some(d => !d), - } - }) - } -} - -WorkingEmployeePopup.components = { MrpTimer }; -WorkingEmployeePopup.template = 'mrp_workorder_hr.WorkingEmployeePopup'; diff --git a/mrp_workorder_hr/static/src/components/working_employee_popup.scss b/mrp_workorder_hr/static/src/components/working_employee_popup.scss deleted file mode 100644 index db4914d1..00000000 --- a/mrp_workorder_hr/static/src/components/working_employee_popup.scss +++ /dev/null @@ -1,13 +0,0 @@ -.o_popup_employee_selection { - display: flex; - flex-direction: row; - justify-content: space-between; - line-height: 50px; - color: black; - div { - flex-basis: 25%; - } - .o_popup_employee_name { - flex-basis: 50%; - } -} diff --git a/mrp_workorder_hr/static/src/components/working_employee_popup.xml b/mrp_workorder_hr/static/src/components/working_employee_popup.xml deleted file mode 100644 index c7674160..00000000 --- a/mrp_workorder_hr/static/src/components/working_employee_popup.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - -
- -
-
-
diff --git a/mrp_workorder_hr/static/src/views/kanban/mrp_workorder_kanban_controller.js b/mrp_workorder_hr/static/src/views/kanban/mrp_workorder_kanban_controller.js deleted file mode 100644 index b67367d8..00000000 --- a/mrp_workorder_hr/static/src/views/kanban/mrp_workorder_kanban_controller.js +++ /dev/null @@ -1,152 +0,0 @@ -/** @odoo-module */ - -import { SelectionPopup } from '@mrp_workorder_hr/components/popup'; -import { PinPopup } from '@mrp_workorder_hr/components/pin_popup'; -import { useBus, useService } from "@web/core/utils/hooks"; -import { patch } from "@web/core/utils/patch"; -import {MrpWorkorderKanbanController} from '@mrp_workorder/views/kanban/mrp_workorder_kanban_controller'; - -const {onWillStart, useState, onMounted} = owl; - -MrpWorkorderKanbanController.components.SelectionPopup = SelectionPopup; -MrpWorkorderKanbanController.components.PinPopup = PinPopup; - -patch(MrpWorkorderKanbanController.prototype, 'mrp_workorder_hr', { - setup() { - this._super(); - this.popup = useState({ - PinPopup: { - isShown: false, - data: {}, - }, - SelectionPopup: { - isShown: false, - data: {}, - } - }); - this.notification = useService('notification'); - this.barcode = useService("barcode"); - useBus(this.barcode.bus, 'barcode_scanned', (event) => this._onBarcodeScanned(event.detail.barcode)); - this.workcenterId = this.props.context.default_workcenter_id; - this.workcenter = false; - this.employee = useState({ - name: false || this.props.context.employee_name, - id: 0 || this.props.context.employee_id, - }); - onWillStart(async () => { - await this.onWillStart(); - }); - onMounted(() => { - this.onMount(); - }); - }, - - async onWillStart() { - if (!this.workcenterId) { - return; - } - const workcenter = await this.orm.read( - "mrp.workcenter", [this.workcenterId], ['allow_employee', 'employee_ids'] - ); - this.workcenter = workcenter[0]; - if (!this.workcenter.allow_employee) { - return; - } - const fieldsToRead = ['id', 'name', 'barcode']; - const employees_domain = []; - if (this.workcenter.employee_ids.length) { - employees_domain.push(['id', 'in', this.workcenter.employee_ids]); - } - this.employees = await this.orm.searchRead( - "hr.employee", employees_domain, fieldsToRead, - ); - }, - - onMount() { - if (this.employeeId) { - this.selectEmployee(this.employeeId); - } - }, - - // destroy: function () { - // core.bus.off('barcode_scanned', this, this._onBarcodeScanned); - // this._super(); - // }, - - openEmployeeSelection() { - const employeeList = this.employees.map(employee => Object.create({ - id: employee.id, - item: employee, - label: employee.name, - isSelected: employee === this.employee.id, - })); - this.popup.SelectionPopup = { - data: { title: this.env._t('Select Employee'), list: employeeList }, - isShown: true, - }; - }, - - async selectEmployee(employeeId, pin) { - const employee = this.employees.find(e => e.id === employeeId); - const employee_function = this.employee.name && this.employee.id === employeeId ? 'logout' : 'login'; - const pinValid = await this.orm.call( - "hr.employee", employee_function, [employeeId, pin], - ); - if (!pinValid && this.popup.PinPopup.isShown) { - this.notification.add(this.env._t('Wrong password !'), {type: 'danger'}); - return; - } - if (!pinValid) { - this._askPin(employee); - return; - } - - if (employee_function === 'login') { - this.notification.add(this.env._t('Logged in!'), {type: 'success'}); - this.employee = { - name: employee.name, - id: employee.id, - }; - if (this.context.openRecord) { - this.openRecord(...this.context.openRecord); - - } - } else { - this.employee = { - name: false, - id: 0, - }; - } - }, - - closePopup(popupName) { - this.popup[popupName].isShown = false; - }, - - _askPin(employee) { - this.popup.PinPopup = { - data: {employee: employee}, - isShown: true, - }; - }, - - _onBarcodeScanned(barcode) { - const employee = this.employees.find(e => e.barcode === barcode); - if (employee) { - this.selectEmployee(employee.id); - } else { - this.notification.add(this.env._t('This employee is not allowed on this workcenter'), {type: 'danger'}); - } - }, - - async openRecord(record, mode) { - if (this.employees && !this.employee.name) { - this.context.openRecord = [record, mode]; - this.openEmployeeSelection(); - return; - } - delete this.context.openRecord; - Object.assign(this.context, {employee_id: this.employee.id}); - this._super(...arguments); - }, -}); diff --git a/mrp_workorder_hr/static/src/views/list/mrp_workorder_list_controller.js b/mrp_workorder_hr/static/src/views/list/mrp_workorder_list_controller.js deleted file mode 100644 index fa43f183..00000000 --- a/mrp_workorder_hr/static/src/views/list/mrp_workorder_list_controller.js +++ /dev/null @@ -1,152 +0,0 @@ -/** @odoo-module */ - -import { SelectionPopup } from "@mrp_workorder_hr/components/popup"; -import { PinPopup } from "@mrp_workorder_hr/components/pin_popup"; -import core from "web.core"; -import { useService } from "@web/core/utils/hooks"; -import { patch } from "@web/core/utils/patch"; -import {MrpWorkorderListController} from "@mrp_workorder/views/list/mrp_workorder_list_controller"; - -const {onWillStart, useState, onMounted} = owl; - -MrpWorkorderListController.components.SelectionPopup = SelectionPopup; -MrpWorkorderListController.components.PinPopup = PinPopup; - -patch(MrpWorkorderListController.prototype, "mrp_workorder_hr", { - setup() { - this._super(); - this.popup = useState({ - PinPopup: { - isShown: false, - data: {}, - }, - SelectionPopup: { - isShown: false, - data: {}, - } - }); - this.notification = useService("notification"); - this.orm = useService("orm"); - this.workcenterId = this.props.context.default_workcenter_id; - this.workcenter = false; - this.employee = useState({ - name: false || this.props.context.employee_name, - id: 0 || this.props.context.employee_id, - }); - onWillStart(async () => { - await this.onWillStart(); - }); - onMounted(() => { - this.onMount(); - }); - }, - - async onWillStart() { - if (!this.workcenterId) { - return; - } - const workcenter = await this.orm.read( - "mrp.workcenter", [this.workcenterId], ["allow_employee", "employee_ids"] - ); - this.workcenter = workcenter[0]; - if (!this.workcenter.allow_employee) { - return; - } - const fieldsToRead = ["id", "name", "barcode"]; - const employees_domain = []; - if (this.workcenter.employee_ids.length) { - employees_domain.push(["id", "in", this.workcenter.employee_ids]); - } - this.employees = await this.orm.searchRead( - "hr.employee", employees_domain, fieldsToRead, - ); - }, - - onMount() { - if (this.employeeId) { - this.selectEmployee(this.employeeId); - } - core.bus.on("barcode_scanned", this, this._onBarcodeScanned); - }, - - // destroy: function () { - // core.bus.off("barcode_scanned", this, this._onBarcodeScanned); - // this._super(); - // }, - - openEmployeeSelection() { - const employeeList = this.employees.map(employee => Object.create({ - id: employee.id, - item: employee, - label: employee.name, - isSelected: employee === this.employee.id, - })); - this.popup.SelectionPopup = { - data: { title: this.env._t("Select Employee"), list: employeeList }, - isShown: true, - }; - }, - - async selectEmployee(employeeId, pin) { - const employee = this.employees.find(e => e.id === employeeId); - const employee_function = this.employee.name && this.employee.id === employeeId ? "logout" : "login"; - const pinValid = await this.orm.call( - "hr.employee", employee_function, [employeeId, pin], - ); - if (!pinValid && this.popup.PinPopup.isShown) { - this.notification.add(this.env._t("Wrong password !"), {type: "danger"}); - return; - } - if (!pinValid) { - this._askPin(employee); - return; - } - - if (employee_function === "login") { - this.notification.add(this.env._t("Logged in!"), {type: "success"}); - this.employee = { - name: employee.name, - id: employee.id, - }; - if (this.context.openRecord) { - this.openRecord(...this.context.openRecord); - } - } else { - this.employee = { - name: false, - id: 0, - }; - } - }, - - closePopup(popupName) { - this.popup[popupName].isShown = false; - }, - - _askPin(employee) { - this.popup.PinPopup = { - data: {employee: employee}, - isShown: true, - }; - }, - - _onBarcodeScanned: function (barcode) { - const employee = this.employees.find(e => e.barcode === barcode); - if (employee) { - this.selectEmployee(employee.id); - } else { - this.notification.add(this.env._t("This employee is not allowed on this workcenter"), {type: "danger"}); - } - }, - - async openRecord(record, mode) { - if (this.employees && !this.employee.name) { - this.context.openRecord = [record, mode]; - this.openEmployeeSelection(); - return; - } - delete this.context.openRecord; - Object.assign(this.context, {employee_id: this.employee.id}); - this._super(...arguments); - }, -}); diff --git a/mrp_workorder_hr/static/src/views/xml/mrp_workorder_buttons.xml b/mrp_workorder_hr/static/src/views/xml/mrp_workorder_buttons.xml deleted file mode 100644 index ab77ce2e..00000000 --- a/mrp_workorder_hr/static/src/views/xml/mrp_workorder_buttons.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - -
- -
-
- -
-
-
-
diff --git a/mrp_workorder_hr/static/tests/tours/tour_test_workorder.js b/mrp_workorder_hr/static/tests/tours/tour_test_workorder.js deleted file mode 100644 index 086c703a..00000000 --- a/mrp_workorder_hr/static/tests/tours/tour_test_workorder.js +++ /dev/null @@ -1,94 +0,0 @@ -/** @odoo-module **/ - -import tour from 'web_tour.tour'; -import helper from 'mrp_workorder.tourHelper'; - -tour.register('test_production_with_employee', {test: true}, [ - {trigger: 'div.popup'}, - {trigger: 'h3:contains("Change Worker")'}, - {trigger: 'div.selection-item:contains("Arthur")'}, - {trigger: 'div.popup-numpad'}, - {trigger: '.popup-numpad button:contains("1")'}, - {trigger: 'span.highlight:contains("•")'}, - {trigger: '.popup-numpad button:contains("2")'}, - {trigger: 'span.highlight:contains("••")'}, - {trigger: '.popup-numpad button:contains("3")'}, - {trigger: 'span.highlight:contains("•••")'}, - {trigger: '.popup-numpad button:contains("4")'}, - {trigger: 'span.highlight:contains("••••")'}, - {trigger: 'button.confirm'}, - { - trigger: 'span[title="Arthur Fu"]', - run: function () { - helper.assertCheckLength(3); - helper.assertValidatedCheckLength(0); - helper.assertQtyToProduce(2, 2); - helper.assertCurrentCheck('Instruction 1'); - } - }, - {trigger: 'div[name=employee_name]'}, - {trigger: 'button.btn-link:contains("New")'}, - {trigger: 'h3:contains("Change Worker")'}, - {trigger: 'div.selection-item:contains("Thomas")'}, - {trigger: 'div.popup-numpad'}, - {trigger: '.popup-numpad button:contains("5")'}, - {trigger: 'span.highlight:contains("•")'}, - {trigger: '.popup-numpad button:contains("6")'}, - {trigger: 'span.highlight:contains("••")'}, - {trigger: '.popup-numpad button:contains("7")'}, - {trigger: 'span.highlight:contains("•••")'}, - {trigger: '.popup-numpad button:contains("8")'}, - {trigger: 'span.highlight:contains("••••")'}, - {trigger: 'button.confirm'}, - { - trigger: 'span[title="Thomas Nific"]', - run: function () { - helper.assertCheckLength(3); - helper.assertValidatedCheckLength(0); - helper.assertQtyToProduce(2, 2); - helper.assertCurrentCheck('Instruction 1'); - } - }, - {trigger: 'div[name=employee_name]'}, - {trigger: 'button.btn_employee:contains("Thomas")'}, - {trigger: 'button[name="action_next"]'}, - {trigger: 'div[name=qty_producing]:contains("2")'}, //field become readonly - { - trigger: '.o_tablet_step_ok', - run: function () { - helper.assertCheckLength(3); - helper.assertValidatedCheckLength(1); - helper.assertQtyToProduce(2, 2); - helper.assertCurrentCheck('Instruction 2'); - } - }, - {trigger: 'button[name="action_next"]'}, - { - trigger: 'p:contains("third")', - run: function () { - helper.assertCheckLength(3); - helper.assertValidatedCheckLength(2); - helper.assertQtyToProduce(2, 2); - helper.assertCurrentCheck('Instruction 3'); - } - }, - {trigger: 'button[name=openMenuPopup]'}, - {trigger: '.o_tablet_popups'}, - {trigger: '.btn:contains("Update Instruction")'}, - {trigger: '.modal-title:contains("Update Instruction")'}, - // { - // trigger: "div[name=note] p", - // position: 'bottom', - // run: 'text my new instruction', - // }, { - { - trigger: "input#comment", - position: 'bottom', - run: 'text my reason', - }, - {trigger: '.btn-primary[name="process"]'}, - {trigger: '.o_tablet_client_action'}, - {trigger: '.btn-primary[name="action_next"]'}, - {trigger: '.btn[name=do_finish]'}, - {trigger: '.o_searchview_input'}, -]); diff --git a/mrp_workorder_hr/tests/__init__.py b/mrp_workorder_hr/tests/__init__.py deleted file mode 100644 index 02da47bf..00000000 --- a/mrp_workorder_hr/tests/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import test_tablet_client_action diff --git a/mrp_workorder_hr/tests/test_tablet_client_action.py b/mrp_workorder_hr/tests/test_tablet_client_action.py deleted file mode 100644 index ef89d6aa..00000000 --- a/mrp_workorder_hr/tests/test_tablet_client_action.py +++ /dev/null @@ -1,83 +0,0 @@ -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -from odoo.tests import Form, HttpCase, tagged -from odoo import Command - -from odoo.addons.mrp.tests.common import TestMrpCommon - - -@tagged('post_install', '-at_install') -class TestTabletWorkorderHr(TestMrpCommon, HttpCase): - def _get_client_action_url(self, workorder_id): - action = self.env["ir.actions.actions"]._for_xml_id("mrp_workorder.tablet_client_action") - return '/web?debug=assets#action=%s&active_id=%s' % (action['id'], workorder_id) - - def test_production_with_employee(self): - self.env['mrp.workcenter'].search([]).write({ - 'allow_employee': True, - 'employee_ids': [ - Command.create({ - 'name': 'Arthur Fu', - 'pin': '1234', - }), - Command.create({ - 'name': 'Thomas Nific', - 'pin': '5678', - }) - ] - }) - self.env['stock.lot'].create([{ - 'product_id': self.product_6.id, - 'name': 'sn1', - 'company_id': self.env.company.id, - }]) - picking_type = self.env.ref('stock.warehouse0').manu_type_id - self.bom_3.operation_ids[0].quality_point_ids = [ - Command.create({ - 'product_ids': self.product_6.ids, - 'picking_type_ids': picking_type.ids, - 'operation_id': self.bom_3.operation_ids[0], - 'test_type_id': self.env.ref('quality.test_type_instructions').id, - 'note': "this is the first note", - 'title': "Instruction 1", - }), - Command.create({ - 'product_ids': self.product_6.ids, - 'picking_type_ids': picking_type.ids, - 'operation_id': self.bom_3.operation_ids[0], - 'test_type_id': self.env.ref('quality.test_type_instructions').id, - 'note': "this is the second note", - 'title': "Instruction 2", - }), - Command.create({ - 'product_ids': self.product_6.ids, - 'picking_type_ids': picking_type.ids, - 'operation_id': self.bom_3.operation_ids[0], - 'test_type_id': self.env.ref('quality.test_type_instructions').id, - 'note': "this is the third note", - 'title': "Instruction 3", - }), - ] - - mrp_order_form = Form(self.env['mrp.production']) - mrp_order_form.product_id = self.product_6 - production = mrp_order_form.save() - production.action_confirm() - production.action_assign() - production.button_plan() - production.qty_producing = 2 - self.assertEqual(len(production.workorder_ids.check_ids), 3) - wo = production.workorder_ids[0] - wo.button_start() - url = self._get_client_action_url(wo.id) - - self.start_tour(url, 'test_production_with_employee', login='admin', timeout=20) - employee1 = self.env['hr.employee'].search([ - ('name', '=', 'Arthur Fu'), - ]) - employee2 = self.env['hr.employee'].search([ - ('name', '=', 'Thomas Nific'), - ]) - self.assertEqual(len(wo.time_ids), 2) - self.assertTrue(wo.time_ids[0].employee_id, employee1) - self.assertTrue(wo.time_ids[1].employee_id, employee2) diff --git a/mrp_workorder_hr/views/hr_employee_views.xml b/mrp_workorder_hr/views/hr_employee_views.xml deleted file mode 100644 index c7b3e283..00000000 --- a/mrp_workorder_hr/views/hr_employee_views.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - hr.employee.view.form.inherit.mrp.workorder.hr - hr.employee - - - - - - - - - diff --git a/mrp_workorder_hr/views/mrp_operation_views.xml b/mrp_workorder_hr/views/mrp_operation_views.xml deleted file mode 100644 index bf32d9d6..00000000 --- a/mrp_workorder_hr/views/mrp_operation_views.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - mrp.routing.workcenter.form.view - mrp.routing.workcenter - - - - - - - - diff --git a/mrp_workorder_hr/views/mrp_workcenter_views.xml b/mrp_workorder_hr/views/mrp_workcenter_views.xml deleted file mode 100644 index da7bbed0..00000000 --- a/mrp_workorder_hr/views/mrp_workcenter_views.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - mrp.workcenter.tree.view.inherit - mrp.workcenter - - - - - - - - - mrp.workcenter.form.view.inherit - mrp.workcenter - - - - - -
- Allowed Employees - -
-
-
- - -
-
-
diff --git a/mrp_workorder_hr/views/mrp_workorder_views.xml b/mrp_workorder_hr/views/mrp_workorder_views.xml deleted file mode 100644 index 427bd254..00000000 --- a/mrp_workorder_hr/views/mrp_workorder_views.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - mrp.workorder.view.tablet.form.inherit.workorder.hr - mrp.workorder - - - - - - - - - - {'invisible': ['|', '|', '|', ('allow_employee', '=', True), ('is_user_working', '=', True), ('working_state', '=', 'blocked'), ('state', '=', ('done', 'cancel'))]} - - - {'invisible': ['|', '|', ('allow_employee', '=', True), ('is_user_working', '=', False), ('working_state', '=', 'blocked')]} - - - - - - mrp.workorder.view.form.inherit.workorder.hr - mrp.workorder - - - - - - - - - - {'column_invisible': [('parent.allow_employee', '!=', False)]} - - - - - - {'column_invisible': [('parent.allow_employee', '!=', False)]} - - - - - - - - - - mrp.workorder.view.kanban.inherit.mrp.workorder.hr - mrp.workorder - - - - - - - record.last_working_user_id.raw_value & ! allow_employee - - - - - diff --git a/mrp_workorder_hr/wizard/__init__.py b/mrp_workorder_hr/wizard/__init__.py deleted file mode 100644 index af231a21..00000000 --- a/mrp_workorder_hr/wizard/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from . import propose_change diff --git a/mrp_workorder_hr/wizard/propose_change.py b/mrp_workorder_hr/wizard/propose_change.py deleted file mode 100644 index adb68917..00000000 --- a/mrp_workorder_hr/wizard/propose_change.py +++ /dev/null @@ -1,13 +0,0 @@ -# -*- coding: utf-8 -*- -# Part of Odoo. See LICENSE file for full copyright and licensing details. - -from odoo import models - - -class ProposeChange(models.TransientModel): - _inherit = 'propose.change' - - def _workorder_name(self): - if self.workorder_id.employee_id: - return self.workorder_id.employee_id.name - return super()._workorder_name() diff --git a/sf_mrs_connect/models/sync_common.py b/sf_mrs_connect/models/sync_common.py index dc428061..edd7e394 100644 --- a/sf_mrs_connect/models/sync_common.py +++ b/sf_mrs_connect/models/sync_common.py @@ -1028,7 +1028,6 @@ class MachineToolCategory(models.Model): token = sf_sync_config['token'] sf_secret_key = sf_sync_config['sf_secret_key'] headers = Common.get_headers(self, token, sf_secret_key) - strUrl = sf_sync_config['sf_url'] + self.url r = requests.post(strUrl, json={}, data=None, headers=headers) r = r.json() diff --git a/sf_mrs_connect/views/res_config_settings_views.xml b/sf_mrs_connect/views/res_config_settings_views.xml index 7bc7f2ad..e8d81453 100644 --- a/sf_mrs_connect/views/res_config_settings_views.xml +++ b/sf_mrs_connect/views/res_config_settings_views.xml @@ -26,7 +26,7 @@
-