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

110
sale_order_line_date/README.rst Executable file
View File

@@ -0,0 +1,110 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association
====================
Sale Order Line Date
====================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f4e35671eaf723733759de9fa762683394377cfc4057b2df2fa9e23a7b5eaf08
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_date
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_line_date
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
This module adds a commitment date to each sale order line and propagate
it to stock moves and pickings. The commitment date of the whole sale
order is computed based on each sale order line date and the sale order
shipping policy. It can't be modified.
**Table of contents**
.. contents::
:local:
Usage
=====
Create a Quotation or a Sales Order and it fills the requested date in
the sale order line
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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_line_date%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
-------
* OdooMRP team
* AvanzOSC
* Serv. Tecnol. Avanzados - Pedro M. Baeza
Contributors
------------
- Oihane Crucelaegui <oihanecrucelaegi@avanzosc.es>
- Esther Martín <esthermartin@avanzosc.es>
- Pedro M. Baeza <pedro.baeza@tecnativa.com>
- Ana Juaristi <anajuaristi@avanzosc.es>
- Jordi Ballester <jordi.ballester@forgeflow.com>
- Aaron Henriquez <ahenriquez@forgeflow.com>
- Serpent Consulting Services Pvt. Ltd. <support@serpentcs.com>
- Francesco Apruzzese <f.apruzzese@apuliasoftware.it>
- Mykhailo Panarin <m.panarin@mobilunity.com>
- Open-Net Sàrl <jae@open-net.ch>
- Miquel Raïch <miquel.raich@forgeflow.com>
- Moaad Bourhim <moaad.bourhim@gmail.com>
- Bernat Puig <bernat.puig@forgeflow.com>
- Nhan Tran <nhant@trobz.com>
Other credits
-------------
The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp
Maintainers
-----------
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_date>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -0,0 +1 @@
from . import models

View File

@@ -0,0 +1,22 @@
# © 2016 OdooMRP team
# © 2016 AvanzOSC
# © 2016 Serv. Tecnol. Avanzados - Pedro M. Baeza
# © 2016 ForgeFlow, S.L.
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# Copyright 2018 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Sale Order Line Date",
"version": "18.0.1.0.2",
"summary": "Adds a commitment date to each sale order line.",
"author": "OdooMRP team,"
"AvanzOSC,"
"Serv. Tecnol. Avanzados - Pedro M. Baeza,"
"Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"category": "Sale",
"license": "AGPL-3",
"depends": ["sale_stock"],
"data": ["views/sale_order_view.xml", "reports/sale_order_report.xml"],
}

40
sale_order_line_date/i18n/ca.po Executable file
View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 2022-03-21 14:17+0000\n"
"Last-Translator: Noel estudillo <noelestudilloviera@gmail.com>\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"
"X-Generator: Weblate 4.3.2\n"
#. module: sale_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr "Data de compromís"
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr "Data de lliurament"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
msgid "Sales Order"
msgstr "Comandes de venda"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línia de comanda de vendes"

46
sale_order_line_date/i18n/de.po Executable file
View File

@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 2021-07-09 15:48+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.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.3.2\n"
#. module: sale_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr "Bestätigtes Datum"
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr "Lieferdatum"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
msgid "Sales Order"
msgstr "Verkaufsauftrag"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Auftragsposition"
#~ msgid "Quotation"
#~ msgstr "Angebot"
#~ msgid "Requested Date"
#~ msgstr "Wunsch-Lieferdatum"

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Εντολή Πώλησης"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

40
sale_order_line_date/i18n/es.po Executable file
View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 2020-07-27 10:19+0000\n"
"Last-Translator: Daniel Martinez Vila <daniel.martinez@qubiq.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 3.10\n"
#. module: sale_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr "Fecha de compromiso"
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr "Fecha de entrega"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
msgid "Sales Order"
msgstr "Órdenes de venta"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea pedido de venta"

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Pedido de venta"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.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_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Pedidos de venta"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea de pedido de venta"

40
sale_order_line_date/i18n/fi.po Executable file
View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Myyntitilaus"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

40
sale_order_line_date/i18n/fr.po Executable file
View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Bon de commande"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Sales Order Line"

43
sale_order_line_date/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_order_line_date
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2018
# Bole <bole@dajmi5.com>, 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: 2025-10-03 10:28+0000\n"
"Last-Translator: vladimiruvid <vladimir@uvid.hr>\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"
"X-Generator: Weblate 5.10.4\n"
#. module: sale_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr "Obećani datum"
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr "Datum dostave"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Prodajni nalog"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Stavka ponude"

View File

@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Prodjani nalog"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

40
sale_order_line_date/i18n/hu.po Executable file
View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Vevői megrendelés"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

40
sale_order_line_date/i18n/it.po Executable file
View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 2023-12-01 15:35+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/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 4.17\n"
#. module: sale_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr "Data impegno"
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr "Data consegna"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
msgid "Sales Order"
msgstr "Ordine di vendita"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Riga ordine di vendita"

40
sale_order_line_date/i18n/nl.po Executable file
View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Verkooporder"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.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_order_line_date
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 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: 2020-11-05 09:08+0000\n"
"Last-Translator: Cas Vissers <c.vissers@brahoo.nl>\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"
"X-Generator: Weblate 3.10\n"
#. module: sale_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr "Bevestigde datum"
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr "Leverdatum"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Verkooporder"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Verkooporderregel"

40
sale_order_line_date/i18n/pt.po Executable file
View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Ordem de Venda"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.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_order_line_date
#
# 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: 2023-11-14 14:36+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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr "Data do compromisso"
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr "Data Entrega"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
msgid "Sales Order"
msgstr "Pedido de Venda"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Linha pedido de venda"

41
sale_order_line_date/i18n/ro.po Executable file
View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: odoomrp-wip (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-11-20 18:11+0000\n"
"PO-Revision-Date: 2015-09-10 16:42+0000\n"
"Last-Translator: <>\n"
"Language-Team: Romanian (http://www.transifex.com/oca/odoomrp-wip-8-0/"
"language/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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Comandă vânzare"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Linie comandă vânzare"

View File

@@ -0,0 +1,34 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
msgid "Sales Order"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

40
sale_order_line_date/i18n/sk.po Executable file
View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Objednávka predaja"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

41
sale_order_line_date/i18n/sl.po Executable file
View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Prodajni nalog"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Postavka prodajnega naloga"

40
sale_order_line_date/i18n/tr.po Executable file
View File

@@ -0,0 +1,40 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Sipariş Emri"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Satış Siparişi Hattı"

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Satış emri"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Sipariş emri satırı "

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_line_date
#
# 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: 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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "Đơn hàng Bán"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.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_order_line_date
#
# 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: Chinese (China) (https://www.transifex.com/oca/teams/23907/"
"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_order_line_date
#: model_terms:ir.ui.view,arch_db:sale_order_line_date.report_saleorder_document
msgid "Commitment Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model.fields,field_description:sale_order_line_date.field_sale_order_line__commitment_date
msgid "Delivery Date"
msgstr ""
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order
#, fuzzy
msgid "Sales Order"
msgstr "销售订单"
#. module: sale_order_line_date
#: model:ir.model,name:sale_order_line_date.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

View File

@@ -0,0 +1,2 @@
from . import sale_order
from . import sale_order_line

View File

@@ -0,0 +1,24 @@
# © 2016 OdooMRP team
# © 2016 AvanzOSC
# © 2016 Serv. Tecnol. Avanzados - Pedro M. Baeza
# © 2016 ForgeFlow S.L. (https://forgeflow.com)
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# Copyright 2018 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from odoo import api, models
class SaleOrder(models.Model):
_inherit = "sale.order"
@api.onchange("commitment_date")
def _onchange_commitment_date(self):
"""Update empty commitment date order lines
with commitment date from sale order"""
result = super()._onchange_commitment_date() or {}
if "warning" not in result:
for line in self.order_line:
if not line.commitment_date:
line.commitment_date = self.commitment_date
return result

View File

@@ -0,0 +1,48 @@
# © 2016 OdooMRP team
# © 2016 AvanzOSC
# © 2016 Serv. Tecnol. Avanzados - Pedro M. Baeza
# © 2016 ForgeFlow S.L. (https://forgeflow.com)
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# Copyright 2018 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
from datetime import timedelta
from odoo import fields, models
class SaleOrderLine(models.Model):
_inherit = "sale.order.line"
commitment_date = fields.Datetime("Delivery Date", copy=False)
def _prepare_procurement_values(self, group_id=False):
vals = super()._prepare_procurement_values(group_id)
# has ensure_one already
if self.commitment_date:
vals.update(
{
"date_planned": self.commitment_date
- timedelta(days=self.order_id.company_id.security_lead),
"date_deadline": self.commitment_date,
}
)
return vals
def write(self, vals):
# Propagate a new commitment date to pending stock moves
res = super().write(vals)
if "commitment_date" in vals:
if vals.get("commitment_date"):
self.move_ids.filtered(
lambda sm: sm.state not in ["cancel", "done"]
).write({"date_deadline": vals.get("commitment_date")})
else:
for line in self:
date_deadline = (
line.order_id.commitment_date or line._expected_date()
)
line.move_ids.filtered(
lambda sm: sm.state not in ["cancel", "done"]
).write({"date_deadline": date_deadline})
return res

View File

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

View File

@@ -0,0 +1,14 @@
- Oihane Crucelaegui \<<oihanecrucelaegi@avanzosc.es>\>
- Esther Martín \<<esthermartin@avanzosc.es>\>
- Pedro M. Baeza \<<pedro.baeza@tecnativa.com>\>
- Ana Juaristi \<<anajuaristi@avanzosc.es>\>
- Jordi Ballester \<<jordi.ballester@forgeflow.com>\>
- Aaron Henriquez \<<ahenriquez@forgeflow.com>\>
- Serpent Consulting Services Pvt. Ltd. \<<support@serpentcs.com>\>
- Francesco Apruzzese \<<f.apruzzese@apuliasoftware.it>\>
- Mykhailo Panarin \<<m.panarin@mobilunity.com>\>
- Open-Net Sàrl \<<jae@open-net.ch>\>
- Miquel Raïch \<<miquel.raich@forgeflow.com>\>
- Moaad Bourhim \<<moaad.bourhim@gmail.com>\>
- Bernat Puig \<<bernat.puig@forgeflow.com>\>
- Nhan Tran \<<nhant@trobz.com>\>

View File

@@ -0,0 +1,2 @@
The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp

View File

@@ -0,0 +1,4 @@
This module adds a commitment date to each sale order line and propagate
it to stock moves and pickings. The commitment date of the whole sale
order is computed based on each sale order line date and the sale order
shipping policy. It can't be modified.

View File

@@ -0,0 +1,2 @@
Create a Quotation or a Sales Order and it fills the requested date in
the sale order line

View File

@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="report_saleorder_document"
inherit_id="sale.report_saleorder_document"
>
<xpath expr="//table/thead//tr[1]//th[1]" position="after">
<th name="th_commitment_date" class="text-start">Commitment Date</th>
</xpath>
<xpath
expr="//table/tbody[hasclass('sale_tbody')]//tr[1]//td[1]"
position="after"
>
<td name="td_commitment_date" class="text-start">
<span t-field="line.commitment_date" t-options="{'widget': 'date'}" />
</td>
</xpath>
</template>
</odoo>

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -0,0 +1,459 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>README.rst</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic, pre.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document">
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
</a>
<div class="section" id="sale-order-line-date">
<h1>Sale Order Line Date</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f4e35671eaf723733759de9fa762683394377cfc4057b2df2fa9e23a7b5eaf08
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_date"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-sale_order_line_date"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/sale-workflow&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module adds a commitment date to each sale order line and propagate
it to stock moves and pickings. The commitment date of the whole sale
order is computed based on each sale order line date and the sale order
shipping policy. It cant be modified.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
<li><a class="reference internal" href="#other-credits" id="toc-entry-6">Other credits</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="usage">
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
<p>Create a Quotation or a Sales Order and it fills the requested date in
the sale order line</p>
</div>
<div class="section" id="bug-tracker">
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sale_order_line_date%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
<div class="section" id="authors">
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
<ul class="simple">
<li>OdooMRP team</li>
<li>AvanzOSC</li>
<li>Serv. Tecnol. Avanzados - Pedro M. Baeza</li>
</ul>
</div>
<div class="section" id="contributors">
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
<ul class="simple">
<li>Oihane Crucelaegui &lt;<a class="reference external" href="mailto:oihanecrucelaegi&#64;avanzosc.es">oihanecrucelaegi&#64;avanzosc.es</a>&gt;</li>
<li>Esther Martín &lt;<a class="reference external" href="mailto:esthermartin&#64;avanzosc.es">esthermartin&#64;avanzosc.es</a>&gt;</li>
<li>Pedro M. Baeza &lt;<a class="reference external" href="mailto:pedro.baeza&#64;tecnativa.com">pedro.baeza&#64;tecnativa.com</a>&gt;</li>
<li>Ana Juaristi &lt;<a class="reference external" href="mailto:anajuaristi&#64;avanzosc.es">anajuaristi&#64;avanzosc.es</a>&gt;</li>
<li>Jordi Ballester &lt;<a class="reference external" href="mailto:jordi.ballester&#64;forgeflow.com">jordi.ballester&#64;forgeflow.com</a>&gt;</li>
<li>Aaron Henriquez &lt;<a class="reference external" href="mailto:ahenriquez&#64;forgeflow.com">ahenriquez&#64;forgeflow.com</a>&gt;</li>
<li>Serpent Consulting Services Pvt. Ltd. &lt;<a class="reference external" href="mailto:support&#64;serpentcs.com">support&#64;serpentcs.com</a>&gt;</li>
<li>Francesco Apruzzese &lt;<a class="reference external" href="mailto:f.apruzzese&#64;apuliasoftware.it">f.apruzzese&#64;apuliasoftware.it</a>&gt;</li>
<li>Mykhailo Panarin &lt;<a class="reference external" href="mailto:m.panarin&#64;mobilunity.com">m.panarin&#64;mobilunity.com</a>&gt;</li>
<li>Open-Net Sàrl &lt;<a class="reference external" href="mailto:jae&#64;open-net.ch">jae&#64;open-net.ch</a>&gt;</li>
<li>Miquel Raïch &lt;<a class="reference external" href="mailto:miquel.raich&#64;forgeflow.com">miquel.raich&#64;forgeflow.com</a>&gt;</li>
<li>Moaad Bourhim &lt;<a class="reference external" href="mailto:moaad.bourhim&#64;gmail.com">moaad.bourhim&#64;gmail.com</a>&gt;</li>
<li>Bernat Puig &lt;<a class="reference external" href="mailto:bernat.puig&#64;forgeflow.com">bernat.puig&#64;forgeflow.com</a>&gt;</li>
<li>Nhan Tran &lt;<a class="reference external" href="mailto:nhant&#64;trobz.com">nhant&#64;trobz.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="other-credits">
<h3><a class="toc-backref" href="#toc-entry-6">Other credits</a></h3>
<p>The migration of this module from 17.0 to 18.0 was financially supported
by Camptocamp</p>
</div>
<div class="section" id="maintainers">
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/18.0/sale_order_line_date">OCA/sale-workflow</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1 @@
from . import test_sale_order_line_date

View File

@@ -0,0 +1,188 @@
# © 2016 OdooMRP team
# © 2016 AvanzOSC
# © 2016 Serv. Tecnol. Avanzados - Pedro M. Baeza
# © 2016-22 ForgeFlow S.L. (https://forgeflow.com)
# Copyright 2017 Serpent Consulting Services Pvt. Ltd.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
import datetime
from odoo import fields
from odoo.tests.common import TransactionCase
class TestSaleOrderLineDates(TransactionCase):
@classmethod
def setUpClass(cls):
"""Setup a Sale Order with 4 lines."""
super().setUpClass()
customer = cls.env.ref("base.res_partner_3")
cls.company = cls.env.ref("base.main_company")
cls.company.security_lead = 1
price = 100.0
qty = 5
product_id = cls.env.ref("product.product_product_7")
cls.today = fields.Datetime.now()
cls.dt1 = cls.today + datetime.timedelta(days=9)
cls.dt2 = cls.today + datetime.timedelta(days=10)
cls.dt3 = cls.today + datetime.timedelta(days=3)
cls.sale1 = cls._create_sale_order(customer, cls.dt2)
cls.sale_line1 = cls._create_sale_order_line(
cls.sale1, product_id, qty, price, cls.dt1
)
cls.sale_line2 = cls._create_sale_order_line(
cls.sale1, product_id, qty, price, cls.dt2
)
cls.sale_line3 = cls._create_sale_order_line(
cls.sale1, product_id, qty, price, None
)
cls.sale2 = cls._create_sale_order(customer, cls.dt2)
cls.sale_line4 = cls._create_sale_order_line(
cls.sale2, product_id, qty, price, cls.dt3
)
cls.sale_line5 = cls._create_sale_order_line(
cls.sale2, product_id, qty, price, cls.dt2
)
cls.sale_line6 = cls._create_sale_order_line(
cls.sale2, product_id, qty, price, cls.dt1
)
@classmethod
def _create_sale_order(cls, customer, date):
sale = cls.env["sale.order"].create(
{
"partner_id": customer.id,
"partner_invoice_id": customer.id,
"partner_shipping_id": customer.id,
"commitment_date": date,
"picking_policy": "direct",
}
)
return sale
@classmethod
def _create_sale_order_line(cls, sale, product, qty, price, date):
sale_line = cls.env["sale.order.line"].create(
{
"product_id": product.id,
"name": "cool product",
"order_id": sale.id,
"price_unit": price,
"product_uom_qty": qty,
"commitment_date": date,
}
)
return sale_line
def _assert_equal_dates(self, date1, date2):
if isinstance(date1, datetime.datetime):
date1 = date1.date()
if isinstance(date2, datetime.datetime):
date2 = date2.date()
self.assertEqual(date1, date2)
def test_01_so_commitment_dates(self):
"""Test if commitment date in sale_order_line fills
with SO commitment_date only when is empty"""
self.assertEqual(self.sale_line3.commitment_date, False)
self.assertEqual(self.sale1.commitment_date, self.dt2)
self.sale1.write({"commitment_date": self.dt3})
self.sale1._onchange_commitment_date()
self.assertEqual(self.sale_line1.commitment_date, self.dt1)
self.assertEqual(self.sale_line2.commitment_date, self.dt2)
self.assertEqual(self.sale_line3.commitment_date, self.dt3)
def test_02_shipping_policies(self):
"""Test if dates are propagated correctly taking into
account Shipping Policy"""
self.sale1.action_confirm()
picking = self.sale1.picking_ids
self.assertEqual(len(picking), 1)
# it should be the earliest (3 line commitment_date is not set) -> dt1
self.assertEqual(picking.scheduled_date, self.dt1 - datetime.timedelta(days=1))
self.assertEqual(picking.date_deadline, self.dt1)
self.assertEqual(self.sale2.picking_policy, "direct")
self.sale2.picking_policy = "one"
self.sale2.action_confirm()
picking = self.sale2.picking_ids
self.assertEqual(len(picking), 1)
# It should be the latest -> dt2
self.assertEqual(picking.scheduled_date, self.dt2 - datetime.timedelta(days=1))
self.assertEqual(picking.date_deadline, self.dt2)
# security_lead 1 day.
self._assert_equal_dates(
self.sale_line4.commitment_date - datetime.timedelta(days=1),
self.sale_line4.move_ids.date,
)
self._assert_equal_dates(
self.sale_line4.commitment_date, self.sale_line4.move_ids.date_deadline
)
self._assert_equal_dates(
self.sale_line5.commitment_date - datetime.timedelta(days=1),
self.sale_line5.move_ids.date,
)
self._assert_equal_dates(
self.sale_line5.commitment_date, self.sale_line5.move_ids.date_deadline
)
self._assert_equal_dates(
self.sale_line6.commitment_date - datetime.timedelta(days=1),
self.sale_line6.move_ids.date,
)
self._assert_equal_dates(
self.sale_line6.commitment_date, self.sale_line6.move_ids.date_deadline
)
def test_03_line_commitment_date_picking_propagation(self):
"""Test if dates are propagated correctly in stock moves"""
self.sale1.write({"commitment_date": self.dt1})
self.sale1._onchange_commitment_date()
self._assert_equal_dates(self.sale_line3.commitment_date, self.dt1)
self.sale1.action_confirm()
# security_lead 1 day.
self._assert_equal_dates(
self.sale_line1.commitment_date - datetime.timedelta(days=1),
self.sale_line1.move_ids.date,
)
self._assert_equal_dates(
self.sale_line1.commitment_date, self.sale_line1.move_ids.date_deadline
)
self._assert_equal_dates(
self.sale_line2.commitment_date - datetime.timedelta(days=1),
self.sale_line2.move_ids.date,
)
self._assert_equal_dates(
self.sale_line2.commitment_date, self.sale_line2.move_ids.date_deadline
)
self._assert_equal_dates(
self.sale_line3.commitment_date - datetime.timedelta(days=1),
self.sale_line3.move_ids.date,
)
self._assert_equal_dates(
self.sale_line3.commitment_date, self.sale_line3.move_ids.date_deadline
)
# Test line date change after confirmation
self.sale_line1.write({"commitment_date": self.dt2})
self._assert_equal_dates(
self.sale_line1.commitment_date, self.sale_line1.move_ids.date_deadline
)
def test_04_line_commitment_date_removal(self):
self.sale1.commitment_date = False
self.sale1.action_confirm()
self._assert_equal_dates(
self.sale_line1.commitment_date, self.sale_line1.move_ids.date_deadline
)
self.sale_line1.commitment_date = False
self._assert_equal_dates(
self.sale_line1._expected_date(), self.sale_line1.move_ids.date_deadline
)
def test_05_commitment_date_duplication(self):
"""
Test if commitment_date field is empty when duplicating a sale order line.
"""
self._assert_equal_dates(self.sale_line1.commitment_date, self.dt1)
duplicated_order = self.sale1.copy()
for duplicated_line in duplicated_order.order_line:
self.assertFalse(duplicated_line.commitment_date)

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="sale_order_commitment_date_form_view" model="ir.ui.view">
<field name="name">sale.order.commitment.date.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<field name="order_line" position="attributes">
<attribute
name="context"
>{'default_commitment_date':commitment_date}</attribute>
</field>
<xpath
expr="//field[@name='order_line']/form//field[@name='tax_id']"
position="after"
>
<field name="commitment_date" />
</xpath>
<xpath
expr="//field[@name='order_line']/list/field[@name='price_unit']"
position="after"
>
<field name="commitment_date" optional="show" />
</xpath>
</field>
</record>
<record id="sale_order_line_ext_tree_view" model="ir.ui.view">
<field name="name">sale.order.line.ext.list</field>
<field name="model">sale.order.line</field>
<field name="inherit_id" ref="sale.view_order_line_tree" />
<field name="arch" type="xml">
<field name="name" position="after">
<field name="commitment_date" optional="show" />
</field>
</field>
</record>
</odoo>