Initial commit: Odoo 18.0-20251222 extra-addons
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled

This commit is contained in:
tocmo0nlord
2026-03-13 20:43:25 +00:00
parent 36e847a7df
commit adbe430761
9472 changed files with 1265727 additions and 0 deletions

67
sale_sourced_by_line/README.rst Executable file
View File

@@ -0,0 +1,67 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl
:alt: License: AGPL-3
====================
Sale Sourced by Line
====================
This module adds the possibility to source a line of sale order from a specific
warehouse instead of using the warehouse of the sale order.
This will create one procurement group per warehouse set in sale
order lines.
It will only supports routes such as MTO and Drop Shipping.
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/167/10.0
Bug Tracker
===========
Bugs are tracked on `GitHub Issues
<https://github.com/OCA/sale-workflow/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.
Credits
=======
Images
------
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
Contributors
------------
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
* Eficent Business and IT Consulting Services S.L. <contact@eficent.com>
* Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
* Info A Tout Prix <huret.emmanuel@infoatoutprix.fr>
* Ajay Javiya <ajaviya@odoogap.com>
Do not contact contributors directly about support or help with technical issues.
Maintainer
----------
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
To contribute to this module, please visit https://odoo-community.org.

View File

@@ -0,0 +1,6 @@
# Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import model

View File

@@ -0,0 +1,23 @@
# Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016-17 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Sale Sourced by Line",
"summary": "Multiple warehouse source locations for Sale order",
"version": "18.0.1.0.0",
"author": "Camptocamp,"
"Eficent,"
"SerpentCS,"
"Info a tout prix,"
"Odoo Community Association (OCA)",
"category": "Warehouse",
"license": "AGPL-3",
"website": "https://github.com/OCA/sale-workflow",
"depends": [
"sale_procurement_group_by_line",
],
"data": ["view/sale_view.xml"],
"installable": True,
}

41
sale_sourced_by_line/i18n/ca.po Executable file
View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2017-02-28 03:43+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n"
"Language: ca\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Comandes de venda"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línia de comanda de vendes"

53
sale_sourced_by_line/i18n/de.po Executable file
View File

@@ -0,0 +1,53 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2023-12-14 18:35+0000\n"
"Last-Translator: jappi00 <jappi2000@ewetel.net>\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Verkaufsauftrag"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Auftragsposition"
#~ msgid ""
#~ "If a source warehouse is selected, it will be used to define the route. "
#~ "Otherwise, it will get the warehouse of the sale order"
#~ msgstr ""
#~ "Wenn ein Ausgangslager ausgewählt wird, wird es für die Definition der "
#~ "Route verwendet. Andernfalls wird das Lager des Verkaufsauftrags "
#~ "verwendet."
#~ msgid "Source Warehouse"
#~ msgstr "Quelllagerhaus"

View File

@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# Kostas Goutoudis <goutoudis@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2017-02-28 03:43+0000\n"
"Last-Translator: Kostas Goutoudis <goutoudis@gmail.com>, 2017\n"
"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/"
"el_GR/)\n"
"Language: el_GR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Εντολή Πώλησης"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

53
sale_sourced_by_line/i18n/es.po Executable file
View File

@@ -0,0 +1,53 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Pedro M. Baeza <pedro.baeza@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2023-12-18 20:10+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Pedido de venta"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea de pedido de venta"
#~ msgid ""
#~ "If a source warehouse is selected, it will be used to define the route. "
#~ "Otherwise, it will get the warehouse of the sale order"
#~ msgstr ""
#~ "Si se selecciona un almacén de origen, se utilizará para definir la ruta. "
#~ "De lo contrario, obtendrá el almacén de la orden de venta"
#~ msgid "Source Warehouse"
#~ msgstr "Almacén de Origen"

View File

@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2017-02-28 03:43+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/"
"es_ES/)\n"
"Language: es_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Pedido de venta"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

View File

@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2017-02-28 03:43+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Spanish (Venezuela) (https://www.transifex.com/oca/"
"teams/23907/es_VE/)\n"
"Language: es_VE\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Pedidos de venta"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea de pedido de venta"

41
sale_sourced_by_line/i18n/fi.po Executable file
View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Myyntitilaus"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

41
sale_sourced_by_line/i18n/fr.po Executable file
View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Bon de commande"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Sales Order Line"

43
sale_sourced_by_line/i18n/hr.po Executable file
View File

@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Bole <bole@dajmi5.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"Language: hr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Prodajni nalog"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Stavka ponude"

View File

@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# Bole <bole@dajmi5.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2017-02-28 03:43+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2017\n"
"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/"
"hr_HR/)\n"
"Language: hr_HR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Prodjani nalog"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

41
sale_sourced_by_line/i18n/hu.po Executable file
View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2017-02-28 03:43+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/hu/)\n"
"Language: hu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Vevői megrendelés"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

54
sale_sourced_by_line/i18n/it.po Executable file
View File

@@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: sale-workflow (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-10-02 17:59+0000\n"
"PO-Revision-Date: 2024-09-16 10:06+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: Italian (http://www.transifex.com/oca/OCA-sale-workflow-8-0/"
"language/it/)\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr "Magazzino predefinito"
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
"Ne non viene selezionato un magazzino on line, questo magazzino è utilizzato "
"come predefinito. "
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Ordine di vendita"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Riga ordine di vendita"
#~ msgid ""
#~ "If a source warehouse is selected, it will be used to define the route. "
#~ "Otherwise, it will get the warehouse of the sale order"
#~ msgstr ""
#~ "Se è selezionata una origine magazzino, verrà utilizzata per definire la "
#~ "rotta. Altrimenti, verrà preso il magazzino dell'ordine di vendita"
#~ msgid "Source Warehouse"
#~ msgstr "MagazzIno origine"

41
sale_sourced_by_line/i18n/nl.po Executable file
View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Verkooporder"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

View File

@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/"
"teams/23907/nl_NL/)\n"
"Language: nl_NL\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Verkooporder"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Verkooporderregel"

41
sale_sourced_by_line/i18n/pt.po Executable file
View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# Daniel Reis <dreis.pt@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2017-02-28 03:43+0000\n"
"Last-Translator: Daniel Reis <dreis.pt@gmail.com>, 2017\n"
"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Ordem de Venda"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

View File

@@ -0,0 +1,54 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Paulo Ricardo <ti@shoppingescritorio.com.br>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2023-12-28 23:43+0000\n"
"Last-Translator: Adriano Prado <adrianojprado@gmail.com>\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/"
"teams/23907/pt_BR/)\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Pedido de Venda"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Linha Pedido de Venda"
#~ msgid ""
#~ "If a source warehouse is selected, it will be used to define the route. "
#~ "Otherwise, it will get the warehouse of the sale order"
#~ msgstr ""
#~ "Se um armazém de origem for selecionado, ele será utilizado para definir "
#~ "a rota. Caso contrário, obterá o armazém do pedido de venda"
#~ msgid "Source Warehouse"
#~ msgstr "Armazém de Origem"

42
sale_sourced_by_line/i18n/ro.po Executable file
View File

@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# Dorin Hongu <dhongu@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2017-02-28 03:43+0000\n"
"Last-Translator: Dorin Hongu <dhongu@gmail.com>, 2017\n"
"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n"
"Language: ro\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?"
"2:1));\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Comandă vânzare"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Linie comandă vânzare"

View File

@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

41
sale_sourced_by_line/i18n/sk.po Executable file
View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-27 03:53+0000\n"
"PO-Revision-Date: 2018-01-27 03:53+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2018\n"
"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Objednávka predaja"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

42
sale_sourced_by_line/i18n/sl.po Executable file
View File

@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
"n%100==4 ? 2 : 3);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Prodajni nalog"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Postavka prodajnega naloga"

41
sale_sourced_by_line/i18n/tr.po Executable file
View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-11-23 01:51+0000\n"
"PO-Revision-Date: 2017-11-23 01:51+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n"
"Language: tr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Sipariş Emri"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Satış Siparişi Hattı"

View File

@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2017-02-28 03:43+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/"
"tr_TR/)\n"
"Language: tr_TR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Satış emri"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr "Sipariş emri satırı "

View File

@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-28 03:43+0000\n"
"PO-Revision-Date: 2017-02-28 03:43+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/"
"teams/23907/vi_VN/)\n"
"Language: vi_VN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "Đơn hàng Bán"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_sourced_by_line
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: sale-workflow (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-09 12:27+0000\n"
"PO-Revision-Date: 2015-09-03 07:10+0000\n"
"Last-Translator: <>\n"
"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-sale-"
"workflow-8-0/language/zh_CN/)\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: sale_sourced_by_line
#: model:ir.model.fields,field_description:sale_sourced_by_line.field_sale_order__warehouse_id
msgid "Default Warehouse"
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model.fields,help:sale_sourced_by_line.field_sale_order__warehouse_id
msgid ""
"If no source warehouse is selected on line, this warehouse is used as "
"default. "
msgstr ""
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order
msgid "Sales Order"
msgstr "销售订单"
#. module: sale_sourced_by_line
#: model:ir.model,name:sale_sourced_by_line.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

View File

@@ -0,0 +1,6 @@
# Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import sale

View File

@@ -0,0 +1,68 @@
# Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import api, fields, models
class SaleOrder(models.Model):
_inherit = "sale.order"
warehouse_id = fields.Many2one(
"stock.warehouse",
string="Default Warehouse",
readonly=True,
help="If no source warehouse is selected on line, "
"this warehouse is used as default. ",
)
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
@api.depends(
"route_id", "order_id.warehouse_id", "product_packaging_id", "product_id"
)
def _compute_warehouse_id(self):
"""compute the warehouse for the lines only
if it has not already been set."""
lines = self.filtered(lambda rec: not rec.warehouse_id)
return super(SaleOrderLine, lines)._compute_warehouse_id()
def _prepare_procurement_group_vals(self):
vals = super()._prepare_procurement_group_vals()
# for compatibility with sale_quotation_sourcing
if self._get_procurement_group_key()[0] == 10:
if self.warehouse_id:
vals["name"] += "/" + self.warehouse_id.name
return vals
def _prepare_procurement_values(self, group_id=False):
"""Prepare specific key for moves or other components
that will be created from a stock rule
comming from a sale order line. This method could be
override in order to add other custom key that could
be used in move/po creation.
"""
values = super()._prepare_procurement_values(group_id)
self.ensure_one()
if self.warehouse_id:
values["warehouse_id"] = self.warehouse_id
return values
def _get_procurement_group_key(self):
"""Return a key with priority to be used to regroup lines in multiple
procurement groups
"""
priority = 10
key = super()._get_procurement_group_key()
# Check priority
if key[0] >= priority:
return key
wh_id = (
self.warehouse_id.id if self.warehouse_id else self.order_id.warehouse_id.id
)
return priority, wh_id

View File

@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -0,0 +1,7 @@
# Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import test_sale_sourced_by_line

View File

@@ -0,0 +1,136 @@
# Copyright 2013-2014 Camptocamp SA - Guewen Baconnier
# © 2016 Eficent Business and IT Consulting Services S.L.
# © 2016 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.addons.base.tests.common import BaseCommon
class TestSaleSourcedByLine(BaseCommon):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.sale_order_model = cls.env["sale.order"]
cls.sale_order_line_model = cls.env["sale.order.line"]
cls.stock_move_model = cls.env["stock.move"]
cls.stock_warehouse_model = cls.env["stock.warehouse"]
# Refs
cls.customer = cls.env.ref("base.res_partner_2")
cls.product_1 = cls.env.ref("product.product_product_27")
cls.product_2 = cls.env.ref("product.product_product_24")
cls.warehouse0 = cls.env.ref("stock.warehouse0")
cls.warehouse1 = cls.stock_warehouse_model.create(
{"name": "Test Warehouse", "code": "TWH"}
)
def test_sales_order_multi_source(self):
so = self.sale_order_model.create(
{
"partner_id": self.customer.id,
}
)
self.sale_order_line_model.create(
{
"product_id": self.product_1.id,
"product_uom_qty": 8,
"warehouse_id": self.warehouse1.id,
"order_id": so.id,
}
)
self.sale_order_line_model.create(
{
"product_id": self.product_2.id,
"product_uom_qty": 8,
"warehouse_id": self.warehouse0.id,
"order_id": so.id,
}
)
# confirm quotation
so.action_confirm()
self.assertEqual(
len(so.picking_ids),
2,
f"2 delivery orders expected. Got {len(so.picking_ids)} instead",
)
for line in so.order_line:
self.assertEqual(
line.procurement_group_id.name,
line.order_id.name + "/" + line.warehouse_id.name,
"The name of the procurement group is not " "correct.",
)
moves = self.stock_move_model.search(
[("group_id", "=", line.procurement_group_id.id)]
)
for move in moves:
self.assertEqual(
move.group_id,
line.procurement_group_id,
"The group in the stock move does not "
"match with the procurement group in "
"the sales order line.",
)
self.assertEqual(
move.picking_id.group_id,
line.procurement_group_id,
"The group in the stock picking does "
"not match with the procurement group "
"in the sales order line.",
)
def test_sales_order_no_source(self):
so = self.sale_order_model.create(
{
"partner_id": self.customer.id,
"warehouse_id": self.warehouse1.id,
}
)
self.sale_order_line_model.create(
{"product_id": self.product_1.id, "product_uom_qty": 8, "order_id": so.id}
)
self.sale_order_line_model.create(
{"product_id": self.product_2.id, "product_uom_qty": 8, "order_id": so.id}
)
# confirm quotation
so.action_confirm()
self.assertEqual(
len(so.picking_ids),
1,
f"1 delivery order expected. Got {len(so.picking_ids)} instead",
)
def test_sale_order_source(self):
so = self.sale_order_model.create(
{
"partner_id": self.customer.id,
}
)
self.sale_order_line_model.create(
{
"product_id": self.product_1.id,
"product_uom_qty": 8,
"warehouse_id": self.warehouse1.id,
"order_id": so.id,
}
)
self.sale_order_line_model.create(
{
"product_id": self.product_2.id,
"product_uom_qty": 8,
"warehouse_id": self.warehouse0.id,
"order_id": so.id,
}
)
# confirm quotation
so.action_confirm()
for line in so.order_line:
moves = self.stock_move_model.search(
[("group_id", "=", line.procurement_group_id.id)]
)
for move in moves:
self.assertEqual(
move.warehouse_id,
line.warehouse_id,
"The warehouse in the stock move does not "
"match with the Sales order line.",
)

View File

@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_order_form" model="ir.ui.view">
<field name="name">sale.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='order_line']/list/field[@name='price_subtotal']"
position="after"
>
<field name="warehouse_id" readonly="state not in ['draft', 'sent']" />
</xpath>
</field>
</record>
<record id="view_order_form_form" model="ir.ui.view">
<field name="name">sale.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale_stock.view_order_form_inherit_sale_stock" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='order_line']/form//field[@name='route_id']"
position="before"
>
<field name="warehouse_id" readonly="state not in ['draft', 'sent']" />
</xpath>
<xpath expr="//field[@name='order_line']" position="attributes">
<attribute
name="context"
>{'default_warehouse_id': warehouse_id}</attribute>
</xpath>
</field>
</record>
</odoo>