Начальное наполнение

This commit is contained in:
parent 3cd41fb473
commit 9f8be44342
43 changed files with 1722 additions and 0 deletions

4
__init__.py Normal file
View File

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models

20
__manifest__.py Normal file
View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Landed Costs On MO',
'version': '1.0',
'summary': 'Landed Costs on Manufacturing Order',
'description': """
This module allows you to easily add extra costs on manufacturing order
and decide the split of these costs among their stock moves in order to
take them into account in your stock valuation.
""",
'depends': ['stock_landed_costs', 'mrp'],
'category': 'Manufacturing/Manufacturing',
'data': [
'views/stock_landed_cost_views.xml',
],
'auto_install': True,
'license': 'LGPL-3',
}

41
i18n/ar.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
# Malaz Abuidris <msea@odoo.com>, 2024
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Malaz Abuidris <msea@odoo.com>, 2024\n"
"Language-Team: Arabic (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "التطبيق على "
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "أوامر التصنيع"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "أمر التصنيع "
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "التكاليف الإضافية للمخزون "

40
i18n/bg.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Maria Boyadjieva <marabo2000@gmail.com>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Maria Boyadjieva <marabo2000@gmail.com>, 2023\n"
"Language-Team: Bulgarian (https://app.transifex.com/odoo/teams/41243/bg/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: bg\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Приложете на"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Производствена поръчка "
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Складови разтоварни разходи "

42
i18n/ca.po Normal file
View File

@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Quim - eccit <quim@eccit.com>, 2023
# Josep Anton Belchi, 2023
# RGB Consulting <odoo@rgbconsulting.com>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: RGB Consulting <odoo@rgbconsulting.com>, 2023\n"
"Language-Team: Catalan (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Aplicar a"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Ordres de producció"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Ordre de producció"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Cost en destí"

41
i18n/cs.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Jakub Smolka, 2023
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Czech (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Použít na"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Výrobní příkazy"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Vedlejší pořizovací náklady"

40
i18n/da.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Martin Trigaux, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Martin Trigaux, 2023\n"
"Language-Team: Danish (https://app.transifex.com/odoo/teams/41243/da/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: da\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Anvend på"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Produktionsordrer"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Produktionsordre"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Lager landede omkostninger"

40
i18n/de.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: German (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Anwenden auf"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Fertigungsaufträge"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Fertigungsauftrag"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Bestand Einstandskosten"

41
i18n/es.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
# Larissa Manderfeld, 2024
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Larissa Manderfeld, 2024\n"
"Language-Team: Spanish (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Aplicar en"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Órdenes de fabricación"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Orden de fabricación"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Coste en destino"

40
i18n/es_419.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Spanish (Latin America) (https://app.transifex.com/odoo/teams/41243/es_419/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es_419\n"
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Aplicar en"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Órdenes de fabricación"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Orden de fabricación"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Costo en destino de existencias"

43
i18n/et.po Normal file
View File

@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Egon Raamat <egon@avalah.ee>, 2023
# Gert Valdek <gert@airobot.ee>, 2023
# Triine Aavik <triine@avalah.ee>, 2023
# Algo Kärp <algokarp@gmail.com>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Algo Kärp <algokarp@gmail.com>, 2023\n"
"Language-Team: Estonian (https://app.transifex.com/odoo/teams/41243/et/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: et\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Rakenda"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Tootmistellimused"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Tootmistellimus"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Lao maaletoomise kulu"

41
i18n/fa.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Martin Trigaux, 2023
# Hanna Kheradroosta, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Hanna Kheradroosta, 2023\n"
"Language-Team: Persian (https://app.transifex.com/odoo/teams/41243/fa/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fa\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "اعمال روی"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "سفارشات تولید"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "سفارش ساخت"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "هزینه سربار موجودی"

43
i18n/fi.po Normal file
View File

@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Marko Happonen <marko.happonen@sprintit.fi>, 2023
# Martin Trigaux, 2023
# Ossi Mantylahti <ossi.mantylahti@obs-solutions.fi>, 2023
# Tuomo Aura <tuomo.aura@web-veistamo.fi>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Tuomo Aura <tuomo.aura@web-veistamo.fi>, 2023\n"
"Language-Team: Finnish (https://app.transifex.com/odoo/teams/41243/fi/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fi\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Vaikutus"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Valmistustilaukset"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Valmistustilaus"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Varaston kokonaiskulu"

40
i18n/fr.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: French (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Appliquer sur"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Ordres de fabrication"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Ordre de fabrication"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Coûts logistique de stock"

42
i18n/he.po Normal file
View File

@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# ZVI BLONDER <ZVIBLONDER@gmail.com>, 2023
# Leandro Noijovich <eliel.sorcerer@gmail.com>, 2023
# yael terner, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: yael terner, 2023\n"
"Language-Team: Hebrew (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "החל על"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "הוראות ייצור"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "הוראת ייצור"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "מלאי עלויות הוצאות הובלה"

41
i18n/hu.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Kovács Tibor <kovika@gmail.com>, 2023
# Martin Trigaux, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Martin Trigaux, 2023\n"
"Language-Team: Hungarian (https://app.transifex.com/odoo/teams/41243/hu/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: hu\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Alkalmazás ezen"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Gyártási rendelések"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Raktárkészlet össz ár (termék+száll+bizt+...)"

41
i18n/id.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
# Abe Manyo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Abe Manyo, 2023\n"
"Language-Team: Indonesian (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Terapkan Pada"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Manufacturing Orders"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Manufacturing order"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Stock Biaya Pengiriman"

40
i18n/it.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Italian (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Applica a"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Ordini di produzione"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Ordine di produzione"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Costi di spedizione magazzino"

40
i18n/ja.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Japanese (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "適用対象"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "製造オーダ"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "製造オーダ"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "在庫仕入諸掛"

40
i18n/ko.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Korean (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "적용"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "제조 주문"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "제조 주문"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "재고 부대 비용"

42
i18n/lt.po Normal file
View File

@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Martin Trigaux, 2023
# Jonas Zinkevicius <jozi@odoo.com>, 2023
# Linas Versada <linaskrisiukenas@gmail.com>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Linas Versada <linaskrisiukenas@gmail.com>, 2023\n"
"Language-Team: Lithuanian (https://app.transifex.com/odoo/teams/41243/lt/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: lt\n"
"Plural-Forms: nplurals=4; plural=(n % 10 == 1 && (n % 100 > 19 || n % 100 < 11) ? 0 : (n % 10 >= 2 && n % 10 <=9) && (n % 100 > 19 || n % 100 < 11) ? 1 : n % 1 != 0 ? 2: 3);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Taikyti"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Gamybos užsakymai"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Gamybos užsakymas"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Atsargų galutiniai kaštai"

41
i18n/lv.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Martin Trigaux, 2023
# Armīns Jeltajevs <armins.jeltajevs@gmail.com>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Armīns Jeltajevs <armins.jeltajevs@gmail.com>, 2023\n"
"Language-Team: Latvian (https://app.transifex.com/odoo/teams/41243/lv/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: lv\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Pielietot"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Ražošanas orderi"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr ""

36
i18n/mrp_landed_costs.pot Normal file
View File

@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 21:55+0000\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: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr ""

40
i18n/nl.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Dutch (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Toepassen op"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Productieorders"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Productieorder"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Voorraad logistieke kosten"

40
i18n/pl.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Polish (https://app.transifex.com/odoo/teams/41243/pl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: pl\n"
"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Zastosuj do"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Zamówienia produkcji"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Zamówienie produkcji"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Koszty nabycia"

40
i18n/pt.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Portuguese (https://app.transifex.com/odoo/teams/41243/pt/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: pt\n"
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Aplicar Em"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Ordens de Produção"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Custos de Entrega do Stock"

41
i18n/pt_BR.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
# Maitê Dietze, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Maitê Dietze, 2023\n"
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/odoo/teams/41243/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: pt_BR\n"
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Aplicar em"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Ordens de produção"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Ordem de produção"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Custo adicionais de estoque"

41
i18n/ru.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Martin Trigaux, 2023
# Wil Odoo, 2024
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2024\n"
"Language-Team: Russian (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Применить на"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Заказы на производство"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Производственный заказ"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Запасы Посадочная стоимость"

40
i18n/sk.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Slovak (https://app.transifex.com/odoo/teams/41243/sk/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: sk\n"
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n >= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Použiť na"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Výrobné objednávky"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Dodacie náklady skladu"

41
i18n/sl.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Jasmina Macur <jasmina@hbs.si>, 2023
# Matjaz Mozetic <m.mozetic@matmoz.si>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Matjaz Mozetic <m.mozetic@matmoz.si>, 2023\n"
"Language-Team: Slovenian (https://app.transifex.com/odoo/teams/41243/sl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: sl\n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Uporabi na"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Proizvodni nalogi"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Odvisni stroški dobave zaloge"

41
i18n/sr.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Milan Bojovic <mbojovic@outlook.com>, 2023
# コフスタジオ, 2024
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: コフスタジオ, 2024\n"
"Language-Team: Serbian (https://app.transifex.com/odoo/teams/41243/sr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: sr\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Primeni na"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Nalozi za proizvodnju"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Manufacturing order"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Stock Landed Cost"

41
i18n/sv.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Anders Wallenquist <anders.wallenquist@vertel.se>, 2023
# Simon S, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Simon S, 2023\n"
"Language-Team: Swedish (https://app.transifex.com/odoo/teams/41243/sv/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: sv\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Applicera på"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Tillverkningsorder"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr ""
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Lager landed cost"

40
i18n/th.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Thai (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "ใช้เมื่อ"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "ใบสั่งผลิต"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "ใบสั่งผลิต"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "ต้นทุนแฝงสต็อก"

42
i18n/tr.po Normal file
View File

@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Martin Trigaux, 2023
# Tugay Hatıl <tugayh@projetgrup.com>, 2023
# Murat Kaplan <muratk@projetgrup.com>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Murat Kaplan <muratk@projetgrup.com>, 2023\n"
"Language-Team: Turkish (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Şuna Uygula"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Üretim Emirleri"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Üretim Emri"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Stok Maliyet Yükleme"

40
i18n/uk.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Ukrainian (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Застосувати на"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Замовлення на виробництво"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Замовлення на виробництво"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Додаткові витрати запасів"

40
i18n/vi.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Vietnamese (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "Áp dụng cho"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "Lệnh sản xuất"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "Lệnh sản xuất"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "Chi phí nhập kho"

41
i18n/zh_CN.po Normal file
View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
# Jeffery CHEN <jeffery9@gmail.com>, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Jeffery CHEN <jeffery9@gmail.com>, 2023\n"
"Language-Team: Chinese (China) (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "应用于"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "制造订单"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "制造订单"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "库存到岸成本"

40
i18n/zh_TW.po Normal file
View File

@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_landed_costs
#
# Translators:
# Wil Odoo, 2023
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-26 21:55+0000\n"
"PO-Revision-Date: 2023-10-26 23:09+0000\n"
"Last-Translator: Wil Odoo, 2023\n"
"Language-Team: Chinese (Taiwan) (https://app.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_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__target_model
msgid "Apply On"
msgstr "套用於"
#. module: mrp_landed_costs
#: model:ir.model.fields.selection,name:mrp_landed_costs.selection__stock_landed_cost__target_model__manufacturing
msgid "Manufacturing Orders"
msgstr "製造訂單"
#. module: mrp_landed_costs
#: model:ir.model.fields,field_description:mrp_landed_costs.field_stock_landed_cost__mrp_production_ids
msgid "Manufacturing order"
msgstr "製造訂單"
#. module: mrp_landed_costs
#: model:ir.model,name:mrp_landed_costs.model_stock_landed_cost
msgid "Stock Landed Cost"
msgstr "庫存到岸成本"

4
models/__init__.py Normal file
View File

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import stock_landed_cost

View File

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api
class StockLandedCost(models.Model):
_inherit = 'stock.landed.cost'
target_model = fields.Selection(selection_add=[
('manufacturing', "Manufacturing Orders")
], ondelete={'manufacturing': 'set default'})
mrp_production_ids = fields.Many2many(
'mrp.production', string='Manufacturing order',
copy=False, groups='stock.group_stock_manager')
@api.onchange('target_model')
def _onchange_target_model(self):
super()._onchange_target_model()
if self.target_model != 'manufacturing':
self.mrp_production_ids = False
def _get_targeted_move_ids(self):
return super()._get_targeted_move_ids() | self.mrp_production_ids.move_finished_ids

4
tests/__init__.py Normal file
View File

@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import test_stock_landed_costs_mrp

View File

@ -0,0 +1,181 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.addons.stock_account.tests.test_anglo_saxon_valuation_reconciliation_common import ValuationReconciliationTestCommon
from odoo.tests import tagged, Form
@tagged('post_install', '-at_install')
class TestStockLandedCostsMrp(ValuationReconciliationTestCommon):
@classmethod
def setUpClass(cls):
super(TestStockLandedCostsMrp, cls).setUpClass()
# References
cls.supplier_id = cls.env['res.partner'].create({'name': 'My Test Supplier'}).id
cls.customer_id = cls.env['res.partner'].create({'name': 'My Test Customer'}).id
cls.picking_type_in_id = cls.env.ref('stock.picking_type_in')
cls.picking_type_out_id = cls.env.ref('stock.picking_type_out')
cls.supplier_location_id = cls.env.ref('stock.stock_location_suppliers')
cls.stock_location_id = cls.company_data['default_warehouse'].lot_stock_id
cls.customer_location_id = cls.env.ref('stock.stock_location_customers')
cls.categ_all = cls.env.ref('product.product_category_all')
# Create product refrigerator & oven
cls.product_component1 = cls.env['product.product'].create({
'name': 'Component1',
'type': 'product',
'standard_price': 1.0,
'categ_id': cls.categ_all.id
})
cls.product_component2 = cls.env['product.product'].create({
'name': 'Component2',
'type': 'product',
'standard_price': 2.0,
'categ_id': cls.categ_all.id
})
cls.product_refrigerator = cls.env['product.product'].create({
'name': 'Refrigerator',
'type': 'product',
'categ_id': cls.categ_all.id
})
cls.uom_unit = cls.env.ref('uom.product_uom_unit')
cls.bom_refri = cls.env['mrp.bom'].create({
'product_id': cls.product_refrigerator.id,
'product_tmpl_id': cls.product_refrigerator.product_tmpl_id.id,
'product_uom_id': cls.uom_unit.id,
'product_qty': 1.0,
'type': 'normal',
})
cls.bom_refri_line1 = cls.env['mrp.bom.line'].create({
'bom_id': cls.bom_refri.id,
'product_id': cls.product_component1.id,
'product_qty': 3,
})
cls.bom_refri_line2 = cls.env['mrp.bom.line'].create({
'bom_id': cls.bom_refri.id,
'product_id': cls.product_component2.id,
'product_qty': 1,
})
# Warehouses
cls.warehouse_1 = cls.env['stock.warehouse'].create({
'name': 'Base Warehouse',
'reception_steps': 'one_step',
'delivery_steps': 'ship_only',
'code': 'BWH'})
cls.product_refrigerator.categ_id.property_cost_method = 'fifo'
cls.product_refrigerator.categ_id.property_valuation = 'real_time'
cls.product_refrigerator.categ_id.property_stock_account_input_categ_id = cls.company_data['default_account_stock_in']
cls.product_refrigerator.categ_id.property_stock_account_output_categ_id = cls.company_data['default_account_stock_out']
# Create service type product 1.Labour 2.Brokerage 3.Transportation 4.Packaging
cls.landed_cost = cls.env['product.product'].create({
'name': 'Landed Cost',
'type': 'service',
})
cls.allow_user = cls.env['res.users'].with_context({'no_reset_password': True}).create({
'name': "Adviser",
'login': "fm",
'email': "accountmanager@yourcompany.com",
'groups_id': [(6, 0, [cls.env.ref('account.group_account_manager').id, cls.env.ref('mrp.group_mrp_user').id, cls.env.ref('stock.group_stock_manager').id])]
})
def test_landed_cost_on_mrp(self):
# Initial inventory
quants = self.env['stock.quant'].with_context(inventory_mode=True).create({
'product_id': self.product_component1.id,
'inventory_quantity': 500,
'location_id': self.warehouse_1.lot_stock_id.id,
})
quants |= self.env['stock.quant'].with_context(inventory_mode=True).create({
'product_id': self.product_component2.id,
'inventory_quantity': 500,
'location_id': self.warehouse_1.lot_stock_id.id,
})
quants.action_apply_inventory()
man_order_form = Form(self.env['mrp.production'].with_user(self.allow_user))
man_order_form.product_id = self.product_refrigerator
man_order_form.bom_id = self.bom_refri
man_order_form.product_qty = 2.0
man_order = man_order_form.save()
self.assertEqual(man_order.state, 'draft', "Production order should be in draft state.")
man_order.action_confirm()
self.assertEqual(man_order.state, 'confirmed', "Production order should be in confirmed state.")
# check production move
production_move = man_order.move_finished_ids
self.assertEqual(production_move.product_id, self.product_refrigerator)
first_move = man_order.move_raw_ids.filtered(lambda move: move.product_id == self.product_component1)
self.assertEqual(first_move.product_qty, 6.0)
first_move = man_order.move_raw_ids.filtered(lambda move: move.product_id == self.product_component2)
self.assertEqual(first_move.product_qty, 2.0)
# produce product
mo_form = Form(man_order.with_user(self.allow_user))
mo_form.qty_producing = 2
man_order = mo_form.save()
man_order.button_mark_done()
landed_cost = Form(self.env['stock.landed.cost'].with_user(self.allow_user)).save()
landed_cost.target_model = 'manufacturing'
# Check domain of the views
self.assertTrue(man_order in self.env['mrp.production'].search([
('move_finished_ids.stock_valuation_layer_ids', '!=', False), ('company_id', '=', landed_cost.company_id.id)]))
landed_cost.mrp_production_ids = [(6, 0, [man_order.id])]
landed_cost.cost_lines = [(0, 0, {'product_id': self.landed_cost.id, 'price_unit': 5.0, 'split_method': 'equal'})]
landed_cost.button_validate()
self.assertEqual(landed_cost.state, 'done')
self.assertTrue(landed_cost.account_move_id)
# Link to one layer of product_refrigerator
self.assertEqual(len(landed_cost.stock_valuation_layer_ids), 1)
self.assertEqual(landed_cost.stock_valuation_layer_ids.product_id, self.product_refrigerator)
self.assertEqual(landed_cost.stock_valuation_layer_ids.value, 5.0)
def test_landed_cost_on_mrp_02(self):
"""
Test that a user who has manager access to stock can create and validate a landed cost linked
to a Manufacturing order without the need for MRP access
"""
# Create a user with only manager access to stock
stock_manager = self.env['res.users'].with_context({'no_reset_password': True}).create({
'name': "Stock Manager",
'login': "test",
'email': "test@test.com",
'groups_id': [(6, 0, [self.env.ref('stock.group_stock_manager').id])]
})
# Make some stock and reserve
self.env['stock.quant']._update_available_quantity(self.product_component1, self.warehouse_1.lot_stock_id, 10)
self.env['stock.quant']._update_available_quantity(self.product_component2, self.warehouse_1.lot_stock_id, 10)
# Create and confirm a MO with a user who has access to MRP
man_order_form = Form(self.env['mrp.production'].with_user(self.allow_user))
man_order_form.product_id = self.product_refrigerator
man_order_form.bom_id = self.bom_refri
man_order_form.product_qty = 1.0
man_order = man_order_form.save()
man_order.action_confirm()
# produce product
# To edit `qty_producing`, the mo must no be draft. It's not thanks to the above `action_confirm()`
# but the values of the form do not update automatically, it must be reloaded.
man_order_form = Form(man_order)
man_order_form.qty_producing = 1
man_order_form.save()
man_order.button_mark_done()
# Create the landed cost with the stock_manager user
landed_cost = Form(self.env['stock.landed.cost'].with_user(stock_manager)).save()
landed_cost.target_model = 'manufacturing'
# Check that the MO can be selected by the stock_manger user
self.assertTrue(man_order in self.env['mrp.production'].search([
('move_finished_ids.stock_valuation_layer_ids', '!=', False), ('company_id', '=', landed_cost.company_id.id)]))
landed_cost.mrp_production_ids = [(6, 0, [man_order.id])]
# Check that he can validate the landed cost without an access error
landed_cost.with_user(stock_manager).button_validate()
self.assertEqual(landed_cost.state, 'done')

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id='view_mrp_landed_costs_form' model='ir.ui.view'>
<field name="name">mrp.landed.cost.form</field>
<field name="model">stock.landed.cost</field>
<field name="inherit_id" ref="stock_landed_costs.view_stock_landed_cost_form"/>
<field name="arch" type="xml">
<field name="target_model" position="attributes">
<attribute name="invisible">0</attribute>
<attribute name="groups">stock.group_stock_manager</attribute>
</field>
<field name="picking_ids" position="after">
<field name="target_model" invisible="1" readonly="state == 'done'"/>
<field name="mrp_production_ids"
widget="many2many_tags" options="{'no_create_edit': True}"
invisible="target_model != 'manufacturing'"
readonly="state == 'done'"
domain="[('company_id', '=', company_id), ('move_finished_ids.stock_valuation_layer_ids', '!=', False)]"/>
</field>
</field>
</record>
</odoo>