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

[17.0][MIG] stock_warehouse_flow: Migration to 17.0 #893

Merged
merged 35 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
2790372
Add 'stock_warehouse_flow' to configure routing flows
sebalix Jul 11, 2022
0663df5
[FIX] stock_warehouse_flow: fix dependencies
sebalix Oct 11, 2022
ebafeef
stock_warehouse_flow: fix lint
sebalix Oct 12, 2022
0203fcb
stock_warehouse_flow 14.0.1.0.2
OCA-git-bot Oct 12, 2022
15839b2
stock_warehouse_flow: fix is_valid_for_move return value
TDu Nov 10, 2022
e7b206e
stock_warehouse_flow: raise error on flow match
TDu Nov 10, 2022
f7dbdf7
stock_warehouse_flow 14.0.1.0.3
OCA-git-bot Nov 16, 2022
48c3dfe
[IMP] stock_warehouse_flow: Split a move before flow apply
mt-software-de May 28, 2023
b1592b4
stock_warehouse_flow 14.0.2.0.0
OCA-git-bot Jul 24, 2023
bf074c7
[14.0][FIX] stock_warehouse_flow: fix RollbackException on write
Ricardoalso Aug 3, 2023
0103482
[MIG] stock_warehouse_flow: Migration to 16.0
RodrigoBM Aug 2, 2023
a8518dc
[UPD] Update stock_warehouse_flow.pot
Sep 7, 2023
de74963
[UPD] README.rst
OCA-git-bot Sep 7, 2023
6f859a4
Added translation using Weblate (Spanish)
Ivorra78 Sep 7, 2023
f69b1aa
Translated using Weblate (Spanish)
Ivorra78 Sep 7, 2023
f82fb90
Translated using Weblate (Spanish)
jsanchezdeavila Sep 11, 2023
65f4b9e
Added translation using Weblate (Italian)
mymage Sep 12, 2023
94723da
Translated using Weblate (Italian)
mymage Sep 15, 2023
a1e4287
Translated using Weblate (Italian)
mymage Sep 21, 2023
6f0b351
Translated using Weblate (Italian)
mymage Oct 6, 2023
79a2514
Update translation files
weblate Oct 10, 2023
582978d
Translated using Weblate (Italian)
mymage Oct 12, 2023
605c08c
Translated using Weblate (Italian)
francesco-ooops Oct 13, 2023
e963c1c
Translated using Weblate (Italian)
mymage Oct 18, 2023
d5fef27
Translated using Weblate (Italian)
mymage Oct 29, 2023
0cbef70
[IMP] stock_warehouse_flow: assign_picking only if needed
mt-software-de Jul 19, 2023
a7582d6
Translated using Weblate (Italian)
mymage Nov 10, 2023
019252c
[BOT] post-merge updates
OCA-git-bot Nov 21, 2023
c6f9aba
Translated using Weblate (Italian)
mymage Nov 22, 2023
9c463ee
Translated using Weblate (Italian)
mymage Dec 20, 2023
c5de457
Translated using Weblate (Italian)
mymage Dec 24, 2023
82d137f
stock_warehouse_flow: enable auto-created locations
sebalix Feb 27, 2024
37ec2b7
[BOT] post-merge updates
OCA-git-bot Feb 27, 2024
aac5b7a
[IMP] stock_warehouse_flow: pre-commit auto fixes
peluko00 Apr 22, 2024
bf71e0e
[MIG] stock_warehouse_flow: Migration to 17.0
peluko00 Apr 22, 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
143 changes: 143 additions & 0 deletions stock_warehouse_flow/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
====================
Stock Warehouse Flow
====================

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

.. |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-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%2Fwms-lightgray.png?logo=github
:target: https://github.com/OCA/wms/tree/17.0/stock_warehouse_flow
:alt: OCA/wms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/wms-17-0/wms-17-0-stock_warehouse_flow
: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/wms&target_branch=17.0
:alt: Try me on Runboat

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

This module introduces the concept of routing flows in order to manage
different delivery routes for a warehouse.

The default behavior of Odoo allows you to have only one delivery route
per warehouse (with one, two or three steps). With this module, you are
now able to manage multiple delivery routes (having their own rules and
operation types), the right one being selected automatically based on
some criterias, like the carrier and any attribute of the stock move to
process.

This allows you to define a delivery route based on the type of goods to
ship, for instance:

- whole pallet (pick + ship)
- cold chain goods
- dangerous goods

|image_description|

.. |image_description| image:: https://raw.githubusercontent.com/OCA/wms/14.0/stock_warehouse_flow/static/description/flow.png

.. 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:

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

Got to "Inventory > Settings > Routing Flows".

A routing flow can be seen as a helper to generate a delivery route
(like the warehouse is doing automatically). The new route will get its
own rules and operation types that doesn't overlap with the default ones
of the warehouse.

A routing flow is responsible to change the warehouse delivery route of
a move by another one depending on some criterias:

- the initial outgoing operation type (usually the default one)
- the carrier
- a custom domain (applied on the move)

This way you are able to change the route a move will take depending on
its carrier and, for instance, the type or the packaging of the product
you want to ship.

|image|

.. |image| image:: https://raw.githubusercontent.com/OCA/wms/14.0/stock_warehouse_flow/static/description/config.png

Usage
=====

When a stock move is confirmed, if a flow is matching all the criteria
then the new delivery route will be automatically applied.

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

Currently, the module supports only delivery routes, but it could
improved to support reception routes as well.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/wms/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/wms/issues/new?body=module:%20stock_warehouse_flow%0Aversion:%2017.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
* BCIM

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

- Sébastien Alix <[email protected]>
- Jacques-Etienne Baudoux <[email protected]>
- Michael Tietz (MT Software) <[email protected]>
- `APSL-Nagarro <https://apsl.tech>`__:

- Antoni Marroig <[email protected]>

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/wms <https://github.com/OCA/wms/tree/17.0/stock_warehouse_flow>`_ 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_warehouse_flow/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
30 changes: 30 additions & 0 deletions stock_warehouse_flow/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2022 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
{
"name": "Stock Warehouse Flow",
"summary": "Configure routing flow for stock moves",
"author": "Camptocamp, BCIM, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/wms",
"category": "Warehouse Management",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"depends": [
# core
"stock",
"delivery",
# OCA/stock-logistics-workflow
"delivery_procurement_group_carrier",
],
"demo": [
"demo/stock_warehouse_flow.xml",
],
"data": [
"security/ir.model.access.csv",
"views/stock_route.xml",
"views/stock_warehouse_flow.xml",
"views/stock_warehouse.xml",
"views/delivery_carrier.xml",
],
"installable": True,
"development_status": "Alpha",
}
38 changes: 38 additions & 0 deletions stock_warehouse_flow/demo/stock_warehouse_flow.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2022 Camptocamp SA
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>

<record id="stock_warehouse_flow_delivery_ship_only" model="stock.warehouse.flow">
<field name="name">Delivery Ship Only</field>
<field name="warehouse_id" ref="stock.warehouse0" />
<field name="from_picking_type_id" ref="stock.picking_type_out" />
<field name="delivery_steps">ship_only</field>
<field name="sequence_prefix">DIRECT</field>
</record>

<record id="stock_warehouse_flow_delivery_pick_ship" model="stock.warehouse.flow">
<field name="name">The Poste - Delivery Pick Ship</field>
<field name="warehouse_id" ref="stock.warehouse0" />
<field name="from_picking_type_id" ref="stock.picking_type_out" />
<field name="delivery_steps">pick_ship</field>
<field name="sequence_prefix">POST</field>
<field name="carrier_ids" eval="[(6, 0, [ref('delivery.delivery_carrier')])]" />
</record>

<record
id="stock_warehouse_flow_delivery_pick_pack_ship"
model="stock.warehouse.flow"
>
<field name="name">Normal - Delivery Pick Pack Ship</field>
<field name="warehouse_id" ref="stock.warehouse0" />
<field name="from_picking_type_id" ref="stock.picking_type_out" />
<field name="delivery_steps">pick_pack_ship</field>
<field name="sequence_prefix">NORMAL</field>
<field
name="carrier_ids"
eval="[(6, 0, [ref('delivery.delivery_local_delivery')])]"
/>
</record>

</odoo>
Loading
Loading