Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] stock_partner_delivery_window: Migration to 18.0 #1783

Open
wants to merge 36 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
5b548aa
Add stock_partner_delivery_window
grindtildeath Mar 31, 2020
9dac386
[IMP] stock_partner_delivery_window: black, isort, prettier
dzungtran89 Jan 17, 2021
7a7b718
[MIG] stock_partner_delivery_window: Migration to 14.0
dzungtran89 Jan 17, 2021
3d4e0e6
s_p_delivery_window: time format improvements
sebalix Mar 30, 2021
7b48a3b
stock_partner_delivery_window: ease warning msg check/override
simahawk Apr 2, 2021
a2671f0
stock_partner_delivery_window: Cleanup
mmequignon Apr 6, 2021
ca41490
s_p_delivery_window: Add working days as delivery schedule preference
mmequignon Apr 8, 2021
dcb929c
[FW][14.0] stock_partner_delivery_window: Fix default value on delive…
grindtildeath Jun 30, 2021
35766dc
[UPD] Update stock_partner_delivery_window.pot
oca-travis Jul 19, 2021
ee175c1
[ADD] icon.png
OCA-git-bot Jul 19, 2021
76bc943
stock_partner_delivery_window 14.0.1.0.1
OCA-git-bot Jul 19, 2021
2de493f
[FIX] s_p_delivery_window: selection attribute will be ignored as the…
sebalix Aug 3, 2021
afd1b2b
stock_partner_delivery_window 14.0.1.1.0
OCA-git-bot Aug 5, 2021
206dcda
[FIX] stock_partner_delivery_window version
gurneyalex Sep 13, 2021
194eb9f
[IMP] stock_partner_delivery_window: copy time window ids of partner
hailangvn Dec 12, 2021
d9d910c
stock_partner_delivery_window 14.0.1.2.0
OCA-git-bot Dec 22, 2021
e9bb168
[14.0][FIX] Align development statuses
rousseldenis Aug 8, 2022
8f30e12
[UPD] README.rst
OCA-git-bot Aug 8, 2022
5213026
[UPD] stock_partner_delivery_window: Upgrade to Beta
rousseldenis Aug 8, 2022
1458d3f
[UPD] README.rst
OCA-git-bot Aug 8, 2022
d487d54
stock_partner_delivery_window 14.0.1.2.1
OCA-git-bot Aug 8, 2022
8038dd9
s_p_delivery_window: Make delivery windows inclusive
mmequignon Mar 16, 2023
1e668ef
stock_partner_delivery_window 14.0.1.2.2
OCA-git-bot Mar 21, 2023
833716a
[MIG] stock_partner_delivery_window: Migration to 16.0
nguyenminhchien Sep 14, 2023
9845e06
[UPD] Update stock_partner_delivery_window.pot
Oct 10, 2023
b8f52a6
[BOT] post-merge updates
OCA-git-bot Oct 10, 2023
c210b0d
Added translation using Weblate (Spanish)
Ivorra78 Oct 15, 2023
4cfc31d
Translated using Weblate (Spanish)
Ivorra78 Oct 15, 2023
dc0a63b
[FIX] *: Linter fixes
pedrobaeza Oct 28, 2023
ee0e033
[BOT] post-merge updates
OCA-git-bot Oct 28, 2023
6b5970e
Update translation files
weblate Oct 28, 2023
eeb6f8f
Added translation using Weblate (Italian)
mymage Nov 16, 2023
60b06e4
Translated using Weblate (Italian)
mymage Nov 20, 2023
25cbf07
Translated using Weblate (Italian)
mymage Dec 26, 2023
92bc5bf
[IMP] stock_partner_delivery_window: pre-commit auto fixes
thienvh332 Nov 27, 2024
ba0b1b4
[MIG] stock_partner_delivery_window: Migration to 18.0
thienvh332 Nov 27, 2024
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
111 changes: 111 additions & 0 deletions stock_partner_delivery_window/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
=============================
Stock Partner Delivery Window
=============================

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

.. |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/licence-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%2Fstock--logistics--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_partner_delivery_window
:alt: OCA/stock-logistics-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-workflow-18-0/stock-logistics-workflow-18-0-stock_partner_delivery_window
: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/stock-logistics-workflow&target_branch=18.0
:alt: Try me on Runboat

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

This module allows to define time scheduling preference for delivery
orders on partners, in order to raise a warning when changing a
scheduled date to a time window that is not preferred by this customer.

**Table of contents**

.. contents::
:local:

Configuration
=============

On partners form view, under the "Sales & Purchases" tab, one can define
a "Delivery schedule preference" for each partner.

Possible configurations are:

- Any time: Do not postpone deliveries
- Fixed time windows: Postpone deliveries to the next preferred time
window
- Weekdays: Postpone deliveries to the next weekday

After selecting "Fixed time windows", one can define the preferred
delivery windows in the embedded tree view below.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-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/stock-logistics-workflow/issues/new?body=module:%20stock_partner_delivery_window%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
-------

* Camptocamp
* ACSONE SA/NV

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

- Akim Juillerat <[email protected]>
- Matthieu Méquignon <[email protected]>

Trobz

- Dung Tran <[email protected]>
- Vo Hong Thien <[email protected]>

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

The development of this module has been financially supported by:

- Camptocamp

The migration of this module from 16.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/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_partner_delivery_window>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions stock_partner_delivery_window/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions stock_partner_delivery_window/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
{
"name": "Stock Partner Delivery Window",
"summary": "Define preferred delivery time windows for partners",
"version": "18.0.1.0.0",
"category": "Inventory",
"author": "Camptocamp, ACSONE SA/NV, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/stock-logistics-workflow",
"depends": ["base_time_window", "partner_tz", "stock"],
"data": ["security/ir.model.access.csv", "views/res_partner.xml"],
"demo": ["demo/delivery_time_window.xml"],
"installable": True,
}
15 changes: 15 additions & 0 deletions stock_partner_delivery_window/demo/delivery_time_window.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="demo_partner_delivery_window_1" model="partner.delivery.time.window">
<field name="partner_id" ref="base.res_partner_1" />
<field name="time_window_start">10.0</field>
<field name="time_window_end">18.0</field>
<field
name="time_window_weekday_ids"
eval="[(4, ref('base_time_window.time_weekday_monday'))]"
/>
</record>
<record id="base.res_partner_1" model="res.partner">
<field name="delivery_time_preference">time_windows</field>
</record>
</odoo>
203 changes: 203 additions & 0 deletions stock_partner_delivery_window/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_partner_delivery_window
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-10-15 20:38+0000\n"
"Last-Translator: Ivorra78 <[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.17\n"

#. module: stock_partner_delivery_window
#: model:ir.model.fields.selection,name:stock_partner_delivery_window.selection__res_partner__delivery_time_preference__anytime
msgid "Any time"
msgstr "En cualquier momento"

#. module: stock_partner_delivery_window
#: model:ir.model,name:stock_partner_delivery_window.model_res_partner
msgid "Contact"
msgstr "Contacto"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__create_date
msgid "Created on"
msgstr "Creado el"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,help:stock_partner_delivery_window.field_res_partner__delivery_time_preference
#: model:ir.model.fields,help:stock_partner_delivery_window.field_res_users__delivery_time_preference
msgid ""
"Define the scheduling preference for delivery orders:\n"
"\n"
"* Any time: Do not postpone deliveries\n"
"* Fixed time windows: Postpone deliveries to the next preferred time window\n"
"* Weekdays: Postpone deliveries to the next weekday"
msgstr ""
"Defina la preferencia de programación para las órdenes de entrega:\n"
"\n"
"* A cualquier hora: No posponer entregas\n"
"* Ventanas de tiempo fijas: Aplazar las entregas a la siguiente ventana "
"horaria preferida.\n"
"* Días laborables: Aplazar las entregas al siguiente día laborable"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_res_partner__delivery_time_preference
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_res_users__delivery_time_preference
msgid "Delivery time schedule preference"
msgstr "Preferencia de plazo de entrega"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_res_partner__delivery_time_window_ids
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_res_users__delivery_time_window_ids
msgid "Delivery time windows"
msgstr "Plazos de entrega"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: stock_partner_delivery_window
#: model:ir.model.fields.selection,name:stock_partner_delivery_window.selection__res_partner__delivery_time_preference__time_windows
msgid "Fixed time windows"
msgstr "Ventanas temporales fijas"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__time_window_start
msgid "From"
msgstr "Desde"

#. module: stock_partner_delivery_window
#. odoo-python
#: code:addons/stock_partner_delivery_window/models/res_partner.py:0
#, python-format
msgid "From %(start)s to %(end)s"
msgstr "Desde %(start)s hasta %(end)s"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__id
msgid "ID"
msgstr "ID (identificación)"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__write_uid
msgid "Last Updated by"
msgstr "Última Actualización Por"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__write_date
msgid "Last Updated on"
msgstr "Última Actualización el"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__partner_id
msgid "Partner"
msgstr "Socio"

#. module: stock_partner_delivery_window
#. odoo-python
#: code:addons/stock_partner_delivery_window/models/res_partner.py:0
#, python-format
msgid ""
"Please define at least one delivery time window or change preference to Any "
"time"
msgstr ""
"Defina al menos una franja horaria de entrega o cambie la preferencia a "
"Cualquier hora"

#. module: stock_partner_delivery_window
#: model:ir.model,name:stock_partner_delivery_window.model_partner_delivery_time_window
msgid "Preferred delivery time windows"
msgstr "Plazos de entrega preferidos"

#. module: stock_partner_delivery_window
#. odoo-python
#: code:addons/stock_partner_delivery_window/models/stock_picking.py:0
#, python-format
msgid "Scheduled date does not match partner's Delivery window preference."
msgstr ""
"La fecha programada no coincide con la ventana de entrega preferida por el "
"socio."

#. module: stock_partner_delivery_window
#. odoo-python
#: code:addons/stock_partner_delivery_window/models/stock_picking.py:0
#, python-format
msgid ""
"The scheduled date is {date} ({tz}), but the partner is set to prefer "
"deliveries on following time windows:\n"
"{window}"
msgstr ""
"La fecha prevista es {date} ({tz}), pero el socio está configurado para "
"preferir las entregas en las siguientes ventanas horarias:\n"
"{window}"

#. module: stock_partner_delivery_window
#. odoo-python
#: code:addons/stock_partner_delivery_window/models/stock_picking.py:0
#, python-format
msgid ""
"The scheduled date is {date} ({weekday}), but the partner is set to prefer "
"deliveries on working days."
msgstr ""
"La fecha prevista es {date} ({weekday}), pero el contacto está configurado "
"para preferir las entregas en días laborables."

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__time_window_weekday_ids
msgid "Time Window Weekday"
msgstr "Ventana horaria Día de la semana"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__tz
msgid "Timezone"
msgstr "Zona Horaria"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,field_description:stock_partner_delivery_window.field_partner_delivery_time_window__time_window_end
msgid "To"
msgstr "Hasta"

#. module: stock_partner_delivery_window
#: model:ir.model,name:stock_partner_delivery_window.model_stock_picking
msgid "Transfer"
msgstr "Transferencia"

#. module: stock_partner_delivery_window
#: model:ir.model.fields.selection,name:stock_partner_delivery_window.selection__res_partner__delivery_time_preference__workdays
msgid "Weekdays (Monday to Friday)"
msgstr "Días laborables (de lunes a viernes)"

#. module: stock_partner_delivery_window
#: model:ir.model.fields,help:stock_partner_delivery_window.field_partner_delivery_time_window__tz
msgid ""
"When printing documents and exporting/importing data, time values are "
"computed according to this timezone.\n"
"If the timezone is not set, UTC (Coordinated Universal Time) is used.\n"
"Anywhere else, time values are computed according to the time offset of your "
"web client."
msgstr ""
"Al imprimir documentos y exportar/importar datos, los valores de la hora se "
"calculan según esta zona horaria.\n"
"Si la zona horaria no está definida, se utiliza el UTC (Tiempo Universal "
"Coordinado).\n"
"En cualquier otro caso, los valores horarios se calculan de acuerdo con el "
"desfase horario de su cliente web."
Loading
Loading