Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
3fd2556
Update code
AaronHForgeFlow Aug 2, 2016
ce96c5c
sale_order_line_date v9
serpentcs-dev1 May 22, 2017
2764abb
[MIG] sale_order_line_date v10
nikul-serpentcs Jul 26, 2017
f60ef68
[MIG] sale_order_line_date: Migration to 11.0
OpenCode Jan 30, 2018
fe6f34f
[FIX] Function name to prepare procurement values
OpenCode Jul 3, 2018
fa3ac42
Translated using Weblate (German)
marylla Jul 17, 2019
48714d0
[MIG] sale_order_line_date: Migration to 12.0
open-net-sarl Jun 13, 2019
bc57ca2
[MIG] 12.0 sale_order_line_date
Oct 1, 2018
8a08702
[IMP] Add segurity group in views
grindtildeath Mar 8, 2019
9e8a5bd
[UPD] Readme
gurneyalex Jun 20, 2019
9dd0ef0
[FIX] Final touches of migration to v12
MiquelRForgeFlow Nov 4, 2019
5a9dbb0
Translated using Weblate (Portuguese (Brazil))
Nov 24, 2019
64a4df4
[IMP] sale_order_line_date: black, isort
NuriaXifre Jan 13, 2020
1ee66f5
[13.0][MIG] sale_order_line_date
NuriaXifre Jan 13, 2020
185ce8e
Translated using Weblate (Spanish)
danimv5 Jul 27, 2020
97a56a2
[UPD] Eficent -> ForgeFlow
MiquelRForgeFlow Sep 30, 2020
48b3afb
[IMP] sale_order_line_date: improving commitment_date tree column
dennybiasiolli Oct 12, 2020
c25ba3a
Translated using Weblate (Dutch)
Nov 5, 2020
0ac2272
[IMP] sale_order_line_date: black, isort, prettier
cor9003 Feb 10, 2021
29a9417
[MIG] sale_order_line_date: Migration to 14.0
cor9003 Feb 10, 2021
6777cb0
[FIX] chane date_expeted from V13 to date_deadline V14
cor9003 Feb 17, 2021
e3fe444
Translated using Weblate (Italian)
dcorio Jul 7, 2021
4384940
Translated using Weblate (German)
marylla Jul 9, 2021
a92cc39
[IMP] sale_order_line_date: black, isort, prettier
moaadbourhim Nov 16, 2021
1fc6ad6
[15.0][FIX] sale_order_line_date: Refactor code
BernatPForgeFlow Jan 28, 2022
319e56c
[IMP] sale_order_line_date: improve test cases
LoisRForgeFlow Feb 21, 2022
8a91801
[FIX] sale_order_line_date: Functionality as v13 and v14
BernatPForgeFlow Mar 3, 2022
fe2c20b
Translated using Weblate (Catalan)
Noel000 Mar 21, 2022
09cea5d
[MIG] sale_order_line_date to 16.0
Kev-Roche Jun 14, 2023
813f9e1
[IMP] sale_order_line_date: update existing moves date_deadline
ferran-S73 Nov 29, 2022
684017e
Translated using Weblate (Italian)
mymage Jul 19, 2023
560589d
Translated using Weblate (Portuguese (Brazil))
adrianojprado Nov 14, 2023
3536e15
Translated using Weblate (Italian)
mymage Dec 1, 2023
b923fc7
[FIX] sale_order_line_date: format style of commitment_date
miguel-S73 Dec 5, 2023
36ae3c4
[IMP] sale_order_line_date: pre-commit stuff
siemenv Feb 19, 2024
33af703
[MIG] sale_order_line_date: Migration to 17.0
siemenv Mar 4, 2024
3c826da
[IMP] sale_order_line_date: pre-commit execution
Dec 2, 2024
12d01fc
[MIG] sale_order_line_date: Migration to 18.0
Dec 2, 2024
3d290e8
[UPD] Update sale_order_line_date.pot
Feb 3, 2025
024ac2a
[BOT] post-merge updates
OCA-git-bot Feb 3, 2025
b3328a5
[FIX] sale_order_line_date: fix setting empty commitment date on stoc…
metaminux Mar 12, 2025
fec908a
[BOT] post-merge updates
OCA-git-bot Mar 12, 2025
c437dce
[IMP] sale_order_line_date: commitment_date copy False
JoanSForgeFlow Oct 28, 2024
1fe4cb0
[BOT] post-merge updates
OCA-git-bot Sep 29, 2025
1ac29be
Translated using Weblate (Croatian)
uvid-vlado Oct 3, 2025
bd54dce
[MIG] sale_order_line_date: Migration to 19.0
Oct 7, 2025
86ef1c7
Add module sale_procurement_group_by_line
yvaucher Apr 23, 2015
2c1722f
Add OCA module icon
yvaucher Apr 24, 2015
3690b7e
Add bug tracker link on README.rst
yvaucher May 22, 2015
893535f
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
7967b6f
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
ae6dd5b
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
e466272
Recreate pickings doesn't show View Delivery Orders button
Feb 23, 2016
96644c9
9.0 sale_procurement_group_by_line
serpentcs-dev1 Feb 23, 2017
bea60e7
sale_delivery_block (#434)
LoisRForgeFlow May 30, 2017
c1f33fb
[MIG] sale_procurement_group_by_line: Migration to 10.0
MiquelRForgeFlow Jun 22, 2017
b272f37
[FIX]get picking on sale_procurement_group_by_line
AaronHForgeFlow Jan 24, 2018
bc66255
[FIX]adapt test to match
AaronHForgeFlow Mar 16, 2018
5a0a546
[11.0] [MIG]sale_procurement_group_by_line: Migration to 11.0.
murtuzasaleh Jul 18, 2018
f22d3eb
[IMP] Restore super in _action_launch_procurement_rule
MiquelRForgeFlow Dec 10, 2018
6def847
Translated using Weblate (German)
marylla Jul 17, 2019
bedd183
[MIG] sale_procurement_group_by_line: Migration to 12.0
MiquelRForgeFlow Oct 28, 2019
09e6775
[IMP] sale_procurement_group_by_line: black, isort
JoanSForgeFlow Mar 13, 2020
557dff9
[MIG] sale_procurement_group_by_line: Migration to 13.0
JoanSForgeFlow Mar 13, 2020
760531c
*: E741 ambiguous variable name 'l'
MiquelRForgeFlow May 12, 2020
a38f300
Translated using Weblate (Spanish)
danimv5 Jul 27, 2020
d850ed9
[13.0][FIX] sale_procurement_group_by_line: fill previous_product_uom…
LoisRForgeFlow Feb 4, 2021
9b2873c
[13.0][FIX]sale_procurement_group_by_line: fix fill previous_product_…
JordiMForgeFlow Mar 30, 2021
7801edf
[13.0][FIX]sale_procurement_group_by_line: use SO company as the proc…
JordiMForgeFlow Jun 23, 2021
95de75b
[14.0-mig-sale] [IMP] sale_procurement_group_by_line: black, isort, p…
koenloodts Mar 4, 2021
07d46ba
[14.0-mig-sale] [MIG] sale_procurement_group_by_line: Migration to 14.0
koenloodts Mar 4, 2021
a0c272a
[IMP] sale_procurement_group_by_line: black, isort, prettier
JasminSForgeFlow Feb 22, 2022
5a5eb19
[MIG] sale_procurement_group_by_line: Migration to 15.0
JasminSForgeFlow Feb 22, 2022
c408ed3
Translated using Weblate (Catalan)
Noel000 Mar 21, 2022
15d7613
[FIX] sale_procurement_group_by_line: fix fill previous_product_uom_qty
JordiMForgeFlow Apr 29, 2022
efb5e7a
[FIX] sale_procurement_group_by_line: group negative moves when reduc…
AaronHForgeFlow Aug 10, 2022
8df2efa
[FIX] sale_procurement_group_by_line: adapt to v15
MiquelRForgeFlow Nov 23, 2022
51035e5
[IMP] sale_procurement_group_by_line: add test to avoid regression
MiquelRForgeFlow Nov 24, 2022
9228172
[IMP] sale_procurement_group_by_line: Update Devlopment Status
JasminSForgeFlow Apr 14, 2022
68ce8ac
[MIG] sale_procurement_group_by_line: Migration to 16.0
Jun 7, 2023
bd0939e
[UPD] Update sale_procurement_group_by_line.pot
Jun 14, 2023
59eaf87
Translated using Weblate (Italian)
mymage Jul 19, 2023
473859c
Translated using Weblate (Spanish)
Ivorra78 Jul 25, 2023
1cd89bc
Translated using Weblate (German)
dbruehlmeier Oct 11, 2023
65e34cd
[IMP] sale_procurement_group_by_line: pre-commit auto fixes
celm1990 Jan 22, 2024
da9cac5
[MIG] sale_procurement_group_by_line: Migration to 17.0
celm1990 Jan 22, 2024
5b685cb
[UPD] Update sale_procurement_group_by_line.pot
Apr 12, 2024
56d12a6
[BOT] post-merge updates
OCA-git-bot Apr 12, 2024
a9f4d32
[FIX] sale_procurement_group_by_line: update to odoo
MiquelRForgeFlow Nov 25, 2024
7493482
[MIG] sale_procurement_group_by_line: Migration to 18.0
MeritxellAForgeFlow Nov 22, 2024
6a02a4c
[UPD] Update sale_procurement_group_by_line.pot
Jan 8, 2025
18d85b5
[BOT] post-merge updates
OCA-git-bot Jan 8, 2025
78fd8e4
Update translation files
weblate Jan 8, 2025
2afe016
[FIX] sale_procurement_group_by_line: update to odoo
astirpe Sep 16, 2025
c254f4f
[BOT] post-merge updates
OCA-git-bot Oct 6, 2025
73fbdb8
[MIG] sale_procurement_group_by_line: Migration to 19.0
Oct 13, 2025
6e710b8
[8.0][ADD] sale_delivery_split_date module (#620)
tafaRU Apr 13, 2018
4f29749
[MIG] sale_delivery_split_date: Migration to 10.0
tafaRU May 22, 2018
aaf7b85
[FIX] sale_delivery_split_date: fix incompatible modules urls in READ…
tafaRU Jun 19, 2018
c9cfe7f
[MIG] sale_delivery_split_date: Migration to 12.0
SimoRubi Aug 31, 2020
199fe14
Added translation using Weblate (Catalan)
danimv5 Mar 10, 2021
82b3a4d
Added translation using Weblate (Spanish)
danimv5 Mar 10, 2021
9a84cd0
Added translation using Weblate (Portuguese (Portugal))
educasilva Apr 21, 2021
a814ea9
[IMP] sale_delivery_split_date: black, isort, prettier
fredzamoabg Aug 5, 2021
1c8e28d
[MIG] sale_delivery_split_date: Migration to 14.0
fredzamoabg Jan 18, 2022
07962b6
Update translation files
weblate Dec 28, 2022
ed9ae92
[MIG] sale_delivery_split_date: Migration to 15.0
yankinmax Mar 2, 2023
ed8a3aa
[MIG] sale_delivery_split_date: Migration to 16.0
Mar 7, 2023
aeea668
Update translation files
weblate Nov 17, 2023
594cf33
Translated using Weblate (Italian)
mymage Nov 21, 2023
f128a7c
[IMP] sale_delivery_split_date: use security lead time
LauraCForgeFlow Aug 13, 2024
79e7aa8
[IMP] sale_delivery_split_date: pre-commit stuff
siemenv Feb 19, 2024
bbe3531
[MIG] sale_delivery_split_date: Migration to 17.0
siemenv Feb 19, 2024
10e34bf
[UPD] Update sale_delivery_split_date.pot
Nov 18, 2024
bb4eb5b
[BOT] post-merge updates
OCA-git-bot Nov 18, 2024
42b1561
[IMP] sale_delivery_split_date: pre-commit auto fixes
ArnauCForgeFlow Feb 26, 2025
32435e2
[MIG] sale_delivery_split_date: Migration to 18.0
ArnauCForgeFlow Feb 26, 2025
abf6339
[UPD] Update sale_delivery_split_date.pot
Mar 30, 2025
c25f4e8
[BOT] post-merge updates
OCA-git-bot Mar 30, 2025
29bc9ae
[MIG] sale_delivery_split_date: Migrate to 19.0
Oct 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const config = [{
},

ecmaVersion: 2024,
sourceType: "script",
sourceType: "module",
},

rules: {
Expand Down
99 changes: 99 additions & 0 deletions sale_delivery_split_date/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

========================
Sale Delivery Split Date
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:69652f1972b11818ac88de151e78405313708c3ac7722d9f26939bfa20c21a44
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/19.0/sale_delivery_split_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-19-0/sale-workflow-19-0-sale_delivery_split_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=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

When this module is installed, each sale order you confirm will generate
one delivery order per requested date indicated in the sale order lines.

Furthermore, the delivery orders can be searched by selecting the
scheduled date, which is now displayed in the delivery tree view.

**Table of contents**

.. contents::
:local:

Known issues / Roadmap
======================

- Incompatible with
`sale_procurement_group_by_commitment_date <https://github.com/OCA/sale-workflow/tree/12.0/sale_procurement_group_by_commitment_date>`__

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_delivery_split_date%0Aversion:%2019.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
-------

* Agile Business Group

Contributors
------------

- Alex Comba <[email protected]> (https://www.agilebg.com/)
- Carmen Rondon Regalado <[email protected]>
(https://odoo.archeti.com/)
- Tatiana Deribina <[email protected]>

Other credits
-------------

The migration of this module from 18.0 to 19.0 was financially supported
by SprintIT Ltd.

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/19.0/sale_delivery_split_date>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions sale_delivery_split_date/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
20 changes: 20 additions & 0 deletions sale_delivery_split_date/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2018 Alex Comba - Agile Business Group
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Sale Delivery Split Date",
"version": "19.0.1.0.0",
"summary": "Sale Deliveries split by date",
"category": "Sales Management",
"license": "AGPL-3",
"author": "Agile Business Group, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"depends": [
"sale_order_line_date",
"sale_procurement_group_by_line",
],
"data": [
"views/stock_picking.xml",
],
"installable": True,
}
36 changes: 36 additions & 0 deletions sale_delivery_split_date/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_delivery_split_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-03-10 10:45+0000\n"
"Last-Translator: Daniel Martinez Vila <[email protected]>\n"
"Language-Team: none\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_delivery_split_date
#: model:ir.model,name:sale_delivery_split_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línia de comandes de vendes"

#. module: sale_delivery_split_date
#: model_terms:ir.ui.view,arch_db:sale_delivery_split_date.view_picking_internal_search
msgid "Scheduled Date"
msgstr "Data prevista"

#~ msgid "Sale Order"
#~ msgstr "Comanda de venda"

#~ msgid "Scheduled Date (for filter purpose only)"
#~ msgstr "Data programada (només per al filtre)"

#~ msgid "Transfer"
#~ msgstr "Transferència"
36 changes: 36 additions & 0 deletions sale_delivery_split_date/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_delivery_split_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-03-10 10:45+0000\n"
"Last-Translator: Daniel Martinez Vila <[email protected]>\n"
"Language-Team: none\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.3.2\n"

#. module: sale_delivery_split_date
#: model:ir.model,name:sale_delivery_split_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea de pedido de venta"

#. module: sale_delivery_split_date
#: model_terms:ir.ui.view,arch_db:sale_delivery_split_date.view_picking_internal_search
msgid "Scheduled Date"
msgstr "Fecha prevista"

#~ msgid "Sale Order"
#~ msgstr "Pedido de venta"

#~ msgid "Scheduled Date (for filter purpose only)"
#~ msgstr "Fecha programada (solo para fines de filtrado)"

#~ msgid "Transfer"
#~ msgstr "Transferir"
37 changes: 37 additions & 0 deletions sale_delivery_split_date/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_delivery_split_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-08-31 14:57+0000\n"
"PO-Revision-Date: 2024-01-25 15:34+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: \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_delivery_split_date
#: model:ir.model,name:sale_delivery_split_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Riga ordine di vendita"

#. module: sale_delivery_split_date
#: model_terms:ir.ui.view,arch_db:sale_delivery_split_date.view_picking_internal_search
msgid "Scheduled Date"
msgstr "Data schedulata"

#~ msgid "Sale Order"
#~ msgstr "Ordine di vendita"

#~ msgid "Scheduled Date (for filter purpose only)"
#~ msgstr "Data pianificata (solo per i filtri)"

#~ msgid "Transfer"
#~ msgstr "Trasferimento"
36 changes: 36 additions & 0 deletions sale_delivery_split_date/i18n/pt_PT.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_delivery_split_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-04-21 20:47+0000\n"
"Last-Translator: educasilva <[email protected]>\n"
"Language-Team: none\n"
"Language: pt_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"
"X-Generator: Weblate 4.3.2\n"

#. module: sale_delivery_split_date
#: model:ir.model,name:sale_delivery_split_date.model_sale_order_line
msgid "Sales Order Line"
msgstr "Linha de encomendas de venda"

#. module: sale_delivery_split_date
#: model_terms:ir.ui.view,arch_db:sale_delivery_split_date.view_picking_internal_search
msgid "Scheduled Date"
msgstr "Data programada"

#~ msgid "Sale Order"
#~ msgstr "Ordem de venda"

#~ msgid "Scheduled Date (for filter purpose only)"
#~ msgstr "Data programada (apenas para fins de filtragem)"

#~ msgid "Transfer"
#~ msgstr "Transferir"
24 changes: 24 additions & 0 deletions sale_delivery_split_date/i18n/sale_delivery_split_date.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_delivery_split_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_delivery_split_date
#: model:ir.model,name:sale_delivery_split_date.model_sale_order_line
msgid "Sales Order Line"
msgstr ""

#. module: sale_delivery_split_date
#: model_terms:ir.ui.view,arch_db:sale_delivery_split_date.view_picking_internal_search
msgid "Scheduled Date"
msgstr ""
3 changes: 3 additions & 0 deletions sale_delivery_split_date/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import sale_order_line
52 changes: 52 additions & 0 deletions sale_delivery_split_date/models/sale_order_line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Copyright 2018 Alex Comba - Agile Business Group
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from datetime import timedelta

from odoo import models
from odoo.tools import format_date


class SaleOrderLine(models.Model):
_inherit = "sale.order.line"

def _prepare_reference_vals(self):
vals = super()._prepare_reference_vals()
if self._get_stock_reference_key()[0] == 24:
if self.commitment_date:
comm_date = self._get_security_lead_time_commitment_date()
vals["name"] = (
f"{vals['name']}/{format_date(self.env, comm_date.date())}"
)
return vals

def _get_stock_reference_key(self):
"""Return a key with priority to be used to regroup lines in multiple
procurement groups
"""
priority = 24
key = super()._get_stock_reference_key()
# Check priority
if key[0] < priority:
if self.commitment_date:
# group by date instead of datetime
comm_date = self._get_security_lead_time_commitment_date()
key = (priority, comm_date.date())
return key

def _prepare_procurement_values(self):
vals = super()._prepare_procurement_values()
line_com_date = self.commitment_date
if line_com_date:
comm_date = self._get_security_lead_time_commitment_date()
vals.update(
date_planned=comm_date,
date_deadline=line_com_date,
)
return vals

def _get_security_lead_time_commitment_date(self):
"""Return the commitment date with security lead time"""
return self.commitment_date - timedelta(
days=self.order_id.company_id.security_lead
)
3 changes: 3 additions & 0 deletions sale_delivery_split_date/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
4 changes: 4 additions & 0 deletions sale_delivery_split_date/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Alex Comba \<<[email protected]>\> (<https://www.agilebg.com/>)
- Carmen Rondon Regalado \<<[email protected]>\>
(<https://odoo.archeti.com/>)
- Tatiana Deribina \<<[email protected]>\>
2 changes: 2 additions & 0 deletions sale_delivery_split_date/readme/CREDITS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
The migration of this module from 18.0 to 19.0 was financially supported
by SprintIT Ltd.
5 changes: 5 additions & 0 deletions sale_delivery_split_date/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
When this module is installed, each sale order you confirm will generate
one delivery order per requested date indicated in the sale order lines.

Furthermore, the delivery orders can be searched by selecting the
scheduled date, which is now displayed in the delivery tree view.
2 changes: 2 additions & 0 deletions sale_delivery_split_date/readme/ROADMAP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Incompatible with
[sale_procurement_group_by_commitment_date](https://github.com/OCA/sale-workflow/tree/12.0/sale_procurement_group_by_commitment_date)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading