Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
126 changes: 126 additions & 0 deletions stock_picking_date_deadline_syncs_scheduled_date/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
================================================
Stock Picking Date Deadline syncs Scheduled Date
================================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-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_picking_date_deadline_syncs_scheduled_date
: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_picking_date_deadline_syncs_scheduled_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/stock-logistics-workflow&target_branch=18.0
:alt: Try me on Runboat

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

This module extends the functionality of Stock Picking dates to align
the Deadline Date field with the Planned Date field in the first
instance and to allow the Planned Date field to be used as a reference
field when preparing deliveries.

As usual, allows the Planned Date field to be freely changed without
affecting the Deadline Date field, but if the Deadline date field is
changed on Pickings through another module, the Planned Date field on
the Picking will also be updated to the Deadline Date.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Use Cases / Context
===================

This module has been developed to allow the Scheduled date field on
Pickings (and Date on moves) to be used as a reference field for
planning purposes when products have to be shipped on the same day that
needs to be delivered.

Usage
=====

To use this module, you need to:

1. Sell a storable product to create pickings or create a new delivery.
2. Confirm the sale or picking.
3. Add the Commitment date to sale or Deadline date on stock moves. This
will change deadline date and scheduled date of your pickings.
4. Change again Commitment date on sales or Deadline date on stock
moves. This will change deadline date and scheduled date of your
pickings.
5. Go to the picking and change Schedule date if you want to make a
rescheduling.

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

To be able to configure the Planned date some days before Deadline date.

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_picking_date_deadline_syncs_scheduled_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
-------

* Moduon

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

- Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)
- Rafael Blasco (`Moduon <https://www.moduon.team/>`__)

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.

.. |maintainer-Shide| image:: https://github.com/Shide.png?size=40px
:target: https://github.com/Shide
:alt: Shide

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Shide|

This module is part of the `OCA/stock-logistics-workflow <https://github.com/OCA/stock-logistics-workflow/tree/18.0/stock_picking_date_deadline_syncs_scheduled_date>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions stock_picking_date_deadline_syncs_scheduled_date/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2024 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)

{
"name": "Stock Picking Date Deadline syncs Scheduled Date",
"summary": "Sync Scheduled Date with Date Deadline in Stock Picking",
"version": "18.0.1.0.0",
"development_status": "Alpha",
"category": "Inventory/Inventory",
"website": "https://github.com/OCA/stock-logistics-workflow",
"author": "Moduon, Odoo Community Association (OCA)",
"maintainers": ["Shide"],
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": ["stock"],
}
22 changes: 22 additions & 0 deletions stock_picking_date_deadline_syncs_scheduled_date/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_date_deadline_syncs_scheduled_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-06-24 13:39+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\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: stock_picking_date_deadline_syncs_scheduled_date
#: model:ir.model,name:stock_picking_date_deadline_syncs_scheduled_date.model_stock_move
msgid "Stock Move"
msgstr "Movimento di magazzino"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_picking_date_deadline_syncs_scheduled_date
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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: stock_picking_date_deadline_syncs_scheduled_date
#: model:ir.model,name:stock_picking_date_deadline_syncs_scheduled_date.model_stock_move
msgid "Stock Move"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import stock_move
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2024 Moduon Team S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)

from odoo import models


class StockMove(models.Model):
_inherit = "stock.move"

def write(self, values):
if values.get("date_deadline"):
values.update({"date": values["date_deadline"]})
return super().write(values)
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module has been developed to allow the Scheduled date field on Pickings (and Date on moves) to be used as a reference field for planning purposes when products have to be shipped on the same day that needs to be delivered.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Eduardo de Miguel ([Moduon](https://www.moduon.team/))
- Rafael Blasco ([Moduon](https://www.moduon.team/))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
This module extends the functionality of Stock Picking dates to align the Deadline Date field with the Planned Date field in the first instance and to allow the Planned Date field to be used as a reference field when preparing deliveries.

As usual, allows the Planned Date field to be freely changed without affecting the Deadline Date field, but if the Deadline date field is changed on Pickings through another module, the Planned Date field on the Picking will also be updated to the Deadline Date.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
To be able to configure the Planned date some days before Deadline date.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
To use this module, you need to:

1. Sell a storable product to create pickings or create a new delivery.
2. Confirm the sale or picking.
3. Add the Commitment date to sale or Deadline date on stock moves. This will change deadline date and scheduled date of your pickings.
4. Change again Commitment date on sales or Deadline date on stock moves. This will change deadline date and scheduled date of your pickings.
5. Go to the picking and change Schedule date if you want to make a rescheduling.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading