diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..dc5e6b6 --- /dev/null +++ b/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import models diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..c8d5abc --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. +{ + 'name': 'Sales Expense Margin', + 'version': '1.0', + 'category': 'Sales/Sales', + 'description': 'When re-invoicing the expense on the SO, set the cost to the total untaxed amount of the expense.', + 'depends': ['sale_expense', 'sale_margin'], + 'installable': True, + 'auto_install': True, + 'license': 'LGPL-3', +} diff --git a/i18n/ar.po b/i18n/ar.po new file mode 100644 index 0000000..c4bffc9 --- /dev/null +++ b/i18n/ar.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "النفقة " + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "عنصر اليومية" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "بند أمر المبيعات" diff --git a/i18n/bg.po b/i18n/bg.po new file mode 100644 index 0000000..b16790d --- /dev/null +++ b/i18n/bg.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# KeyVillage, 2023 +# aleksandar ivanov, 2023 +# Maria Boyadjieva , 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 , 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Разход" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Счетоводна Операция" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Ред на поръчка за продажби" diff --git a/i18n/ca.po b/i18n/ca.po new file mode 100644 index 0000000..0477714 --- /dev/null +++ b/i18n/ca.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Josep Anton Belchi, 2023 +# Manel Fernandez Ramirez , 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: Manel Fernandez Ramirez , 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Despesa" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Apunt comptable" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línia comanda de venda" diff --git a/i18n/cs.po b/i18n/cs.po new file mode 100644 index 0000000..ff0b6d7 --- /dev/null +++ b/i18n/cs.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Ivana Bartonkova, 2023 +# Jakub Smolka, 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: Jakub Smolka, 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Výdaj" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Účetní položka" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Položka prodejní objednávky" diff --git a/i18n/da.po b/i18n/da.po new file mode 100644 index 0000000..d2ba18d --- /dev/null +++ b/i18n/da.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Omkostning" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Journalpost" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Salgsordrelinje" diff --git a/i18n/de.po b/i18n/de.po new file mode 100644 index 0000000..725dce0 --- /dev/null +++ b/i18n/de.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Ausgabe" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Buchungszeile" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Verkaufsauftragszeile" diff --git a/i18n/es.po b/i18n/es.po new file mode 100644 index 0000000..108c74a --- /dev/null +++ b/i18n/es.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Gasto" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Apunte contable" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea de orden de venta" diff --git a/i18n/es_419.po b/i18n/es_419.po new file mode 100644 index 0000000..8348d1d --- /dev/null +++ b/i18n/es_419.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Gasto" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Apunte contable" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Línea de la orden de venta" diff --git a/i18n/et.po b/i18n/et.po new file mode 100644 index 0000000..7eff392 --- /dev/null +++ b/i18n/et.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Martin Trigaux, 2023 +# Eneli Õigus , 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: Eneli Õigus , 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Kulu" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Andmiku kanderida" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Müügitellimuse rida" diff --git a/i18n/fa.po b/i18n/fa.po new file mode 100644 index 0000000..cb3dd84 --- /dev/null +++ b/i18n/fa.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Martin Trigaux, 2023 +# Yousef Shadmanesh , 2023 +# Hamid Darabi, 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: Hamid Darabi, 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "هزینه" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "آیتم دفترروزنامه" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "سطر سفارش‌فروش" diff --git a/i18n/fi.po b/i18n/fi.po new file mode 100644 index 0000000..0dda974 --- /dev/null +++ b/i18n/fi.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Jarmo Kortetjärvi , 2023 +# Tuomo Aura , 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 , 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Kulu" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Päiväkirjatapahtuma" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Myyntitilausrivi" diff --git a/i18n/fr.po b/i18n/fr.po new file mode 100644 index 0000000..85f7490 --- /dev/null +++ b/i18n/fr.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Notes de frais" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Écriture comptable" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Ligne de commande" diff --git a/i18n/he.po b/i18n/he.po new file mode 100644 index 0000000..6dc0a25 --- /dev/null +++ b/i18n/he.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# NoaFarkash, 2023 +# ZVI BLONDER , 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: ZVI BLONDER , 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "מאשר הוצאות" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "תנועת יומן" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "שורת הזמנת לקוח" diff --git a/i18n/hu.po b/i18n/hu.po new file mode 100644 index 0000000..522cef5 --- /dev/null +++ b/i18n/hu.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# gezza , 2023 +# Gergő Kertész , 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: Gergő Kertész , 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Ráfordítás" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Napló tétel" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Vevői megrendelés sor" diff --git a/i18n/id.po b/i18n/id.po new file mode 100644 index 0000000..e4fae5a --- /dev/null +++ b/i18n/id.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Pengeluaran" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Item Jurnal" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Baris Pesanan Penjualan" diff --git a/i18n/it.po b/i18n/it.po new file mode 100644 index 0000000..a797252 --- /dev/null +++ b/i18n/it.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Spesa" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Movimento contabile" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Riga ordine di vendita" diff --git a/i18n/ja.po b/i18n/ja.po new file mode 100644 index 0000000..ac27d60 --- /dev/null +++ b/i18n/ja.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "費用" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "仕訳項目" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "販売オーダ明細" diff --git a/i18n/ko.po b/i18n/ko.po new file mode 100644 index 0000000..4a86068 --- /dev/null +++ b/i18n/ko.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "경비" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "전표 항목" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "판매 주문 내역" diff --git a/i18n/lt.po b/i18n/lt.po new file mode 100644 index 0000000..3063c5f --- /dev/null +++ b/i18n/lt.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Jonas Zinkevicius , 2023 +# Linas Versada , 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: 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Išlaida" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Žurnalo įrašas" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Pardavimo užsakymo eilutė" diff --git a/i18n/lv.po b/i18n/lv.po new file mode 100644 index 0000000..a4298ec --- /dev/null +++ b/i18n/lv.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Martin Trigaux, 2023 +# Will Sensors, 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: Will Sensors, 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Avansa Norēķini" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Kontējums" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Pārdošanas pasūtījuma rinda" diff --git a/i18n/nl.po b/i18n/nl.po new file mode 100644 index 0000000..6d06e1d --- /dev/null +++ b/i18n/nl.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Declaratie" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Boekingsregel" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Verkooporderregel" diff --git a/i18n/pl.po b/i18n/pl.po new file mode 100644 index 0000000..0720936 --- /dev/null +++ b/i18n/pl.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Wydatek" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Pozycja zapisu" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Pozycja zamówienia sprzedaży" diff --git a/i18n/pt.po b/i18n/pt.po new file mode 100644 index 0000000..8f95a08 --- /dev/null +++ b/i18n/pt.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Despesa" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Item do Diário" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linhas da Ordem de Vendas" diff --git a/i18n/pt_BR.po b/i18n/pt_BR.po new file mode 100644 index 0000000..a26883f --- /dev/null +++ b/i18n/pt_BR.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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 (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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Despesa" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Item do diário" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linha do pedido de venda" diff --git a/i18n/ru.po b/i18n/ru.po new file mode 100644 index 0000000..cfbaf5a --- /dev/null +++ b/i18n/ru.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Martin Trigaux, 2023 +# Сергей Шебанин , 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Расход" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Наименование в журнале" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Позиция заказа на продажу" diff --git a/i18n/sale_expense_margin.pot b/i18n/sale_expense_margin.pot new file mode 100644 index 0000000..71209b8 --- /dev/null +++ b/i18n/sale_expense_margin.pot @@ -0,0 +1,31 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "" diff --git a/i18n/sk.po b/i18n/sk.po new file mode 100644 index 0000000..2c0c82b --- /dev/null +++ b/i18n/sk.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Výdavky" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Položka účtovnej knihy" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Položka objednávok" diff --git a/i18n/sl.po b/i18n/sl.po new file mode 100644 index 0000000..cb9dd54 --- /dev/null +++ b/i18n/sl.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Martin Trigaux, 2023 +# Matjaz Mozetic , 2023 +# Tomaž Jug , 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: Tomaž Jug , 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Strošek" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Postavka" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Postavka naročila" diff --git a/i18n/sr.po b/i18n/sr.po new file mode 100644 index 0000000..0add296 --- /dev/null +++ b/i18n/sr.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Milan Bojovic, 2023 +# Dragan Vukosavljevic , 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: Dragan Vukosavljevic , 2023\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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Rashod" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Stavka izveštaja" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Linija porudžbenice" diff --git a/i18n/sv.po b/i18n/sv.po new file mode 100644 index 0000000..7b36a6c --- /dev/null +++ b/i18n/sv.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Anders Wallenquist , 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: 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Utlägg" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Transaktion" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Orderrad" diff --git a/i18n/th.po b/i18n/th.po new file mode 100644 index 0000000..e17a664 --- /dev/null +++ b/i18n/th.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "รายจ่าย" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "รายการสมุดรายวัน" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "รายการคำสั่งขาย" diff --git a/i18n/tr.po b/i18n/tr.po new file mode 100644 index 0000000..fa1462f --- /dev/null +++ b/i18n/tr.po @@ -0,0 +1,37 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Ertuğrul Güreş , 2023 +# Özlem Atalay , 2023 +# Ediz Duman , 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: Ediz Duman , 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Masraf" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Yevmiye Kalemi" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Satış Sipariş Satırı" diff --git a/i18n/uk.po b/i18n/uk.po new file mode 100644 index 0000000..b5ec819 --- /dev/null +++ b/i18n/uk.po @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# Translators: +# Alina Lisnenko , 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: 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Витрати" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Елемент журналу" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Рядок замовлення" diff --git a/i18n/vi.po b/i18n/vi.po new file mode 100644 index 0000000..dd83d6c --- /dev/null +++ b/i18n/vi.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "Chi phí" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "Hạng mục bút toán" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "Dòng đơn bán hàng" diff --git a/i18n/zh_CN.po b/i18n/zh_CN.po new file mode 100644 index 0000000..1359770 --- /dev/null +++ b/i18n/zh_CN.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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 (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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "费用" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "日记账项目" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "销售订单行" diff --git a/i18n/zh_TW.po b/i18n/zh_TW.po new file mode 100644 index 0000000..4844452 --- /dev/null +++ b/i18n/zh_TW.po @@ -0,0 +1,35 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * sale_expense_margin +# +# 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: sale_expense_margin +#: model:ir.model.fields,field_description:sale_expense_margin.field_sale_order_line__expense_id +msgid "Expense" +msgstr "費用" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_account_move_line +msgid "Journal Item" +msgstr "日記賬項目" + +#. module: sale_expense_margin +#: model:ir.model,name:sale_expense_margin.model_sale_order_line +msgid "Sales Order Line" +msgstr "銷售訂單資料行" diff --git a/models/__init__.py b/models/__init__.py new file mode 100644 index 0000000..ac1d552 --- /dev/null +++ b/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import account_move_line +from . import sale_order_line diff --git a/models/account_move_line.py b/models/account_move_line.py new file mode 100644 index 0000000..9085a25 --- /dev/null +++ b/models/account_move_line.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models + + +class AccountMoveLine(models.Model): + _inherit = 'account.move.line' + + def _sale_prepare_sale_line_values(self, order, price): + res = super()._sale_prepare_sale_line_values(order, price) + if self.expense_id: + res['expense_id'] = self.expense_id.id + return res diff --git a/models/sale_order_line.py b/models/sale_order_line.py new file mode 100644 index 0000000..26503e5 --- /dev/null +++ b/models/sale_order_line.py @@ -0,0 +1,18 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import api, models, fields + +class SaleOrderLine(models.Model): + _inherit = "sale.order.line" + + expense_id = fields.Many2one('hr.expense', string='Expense') + + @api.depends('is_expense') + def _compute_purchase_price(self): + expense_lines = self.filtered('expense_id') + for line in expense_lines: + expense = line.expense_id + product_cost = expense.untaxed_amount_currency / (expense.quantity or 1.0) + line.purchase_price = line._convert_to_sol_currency(product_cost, expense.currency_id) + + return super(SaleOrderLine, self - expense_lines)._compute_purchase_price() diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 0000000..ee553dd --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import test_so_expense_purchase_price diff --git a/tests/test_so_expense_purchase_price.py b/tests/test_so_expense_purchase_price.py new file mode 100644 index 0000000..defb437 --- /dev/null +++ b/tests/test_so_expense_purchase_price.py @@ -0,0 +1,100 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. +from odoo import Command +from odoo.addons.hr_expense.tests.common import TestExpenseCommon +from odoo.tests import tagged + +@tagged('-at_install', 'post_install') +class TestExpenseMargin(TestExpenseCommon): + + def test_expense_reinvoice_purchase_price(self): + # re-invoiceable products + product_with_cost = self.product_a + product_with_cost.write({'standard_price': 1000, 'expense_policy': 'sales_price'}) + product_with_no_cost = self.product_c + product_with_no_cost.write({'expense_policy': 'sales_price'}) + + # create SO line and confirm SO (with only one line) + sale_order = self.env['sale.order'].with_context(mail_notrack=True, mail_create_nolog=True).create({ + 'partner_id': self.partner_a.id, + 'partner_invoice_id': self.partner_a.id, + 'partner_shipping_id': self.partner_a.id, + 'order_line': [Command.create({ + 'name': product_with_cost.name, + 'product_id': product_with_cost.id, + 'product_uom_qty': 2.0, + })], + }) + + sale_order.action_confirm() + + expense_sheet = self.env['hr.expense.sheet'].create({ + 'name': 'First Expense for employee', + 'employee_id': self.expense_employee.id, + 'journal_id': self.company_data['default_journal_purchase'].id, + 'accounting_date': '2020-10-12', + 'expense_line_ids': [ + # expense with zero cost product, with 15% tax + Command.create({ + 'name': 'expense_1', + 'date': '2020-10-07', + 'product_id': product_with_no_cost.id, + 'total_amount_currency': 100, + 'tax_ids': [Command.set(self.company_data['default_tax_purchase'].ids)], + 'employee_id': self.expense_employee.id, + 'sale_order_id': sale_order.id, + }), + # expense with zero cost product, with no tax + Command.create({ + 'name': 'expense_2', + 'date': '2020-10-07', + 'product_id': product_with_no_cost.id, + 'total_amount_currency': 100, + 'tax_ids': False, + 'employee_id': self.expense_employee.id, + 'sale_order_id': sale_order.id + }), + # expense with product with cost (1000), with 15% tax + Command.create({ + 'name': 'expense_3', + 'date': '2020-10-07', + 'product_id': product_with_cost.id, + 'quantity': 3, + 'tax_ids': [Command.set(self.company_data['default_tax_purchase'].ids)], + 'employee_id': self.expense_employee.id, + 'sale_order_id': sale_order.id + }), + # expense with product with cost (1000), with no tax + Command.create({ + 'name': 'expense_4', + 'date': '2020-10-07', + 'product_id': product_with_cost.id, + 'quantity': 5, + 'tax_ids': False, + 'employee_id': self.expense_employee.id, + 'sale_order_id': sale_order.id + }), + ], + }) + + expense_sheet.action_approve_expense_sheets() + expense_sheet.action_sheet_move_create() + + self.assertRecordValues(sale_order.order_line[1:], [ + # Expense lines: + { + 'purchase_price': 86.96, + 'is_expense': True, + }, + { + 'purchase_price': 100.0, + 'is_expense': True, + }, + { + 'purchase_price': 869.57, + 'is_expense': True, + }, + { + 'purchase_price': 1000.0, + 'is_expense': True, + }, + ])