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

[16.0][MIG] stock_warehouse_flow: Migration to 16.0 #704

Merged
merged 12 commits into from
Sep 7, 2023
Merged
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
6 changes: 6 additions & 0 deletions setup/stock_warehouse_flow/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
132 changes: 132 additions & 0 deletions stock_warehouse_flow/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
====================
Stock Warehouse Flow
====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/14.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-14-0/wms-14-0-stock_warehouse_flow
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/285/14.0
:alt: Try me on Runbot

|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:: 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:: 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/wms/issues/new?body=module:%20stock_warehouse_flow%0Aversion:%2014.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]>

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/14.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": "16.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