forked from OCA/stock-logistics-warehouse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by jgrandguillaume
- Loading branch information
Showing
103 changed files
with
6,101 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
product-attribute | ||
server-env | ||
server-ux | ||
web | ||
wms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../stock_vertical_lift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
1 change: 1 addition & 0 deletions
1
setup/stock_vertical_lift_kardex/odoo/addons/stock_vertical_lift_kardex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../stock_vertical_lift_kardex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
1 change: 1 addition & 0 deletions
1
setup/stock_vertical_lift_packaging_type/odoo/addons/stock_vertical_lift_packaging_type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../stock_vertical_lift_packaging_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
1 change: 1 addition & 0 deletions
1
setup/stock_vertical_lift_server_env/odoo/addons/stock_vertical_lift_server_env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../stock_vertical_lift_server_env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
1 change: 1 addition & 0 deletions
1
setup/stock_vertical_lift_storage_type/odoo/addons/stock_vertical_lift_storage_type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../stock_vertical_lift_storage_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
============= | ||
Vertical Lift | ||
============= | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! 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%2Fstock--logistics--warehouse-lightgray.png?logo=github | ||
:target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_vertical_lift | ||
:alt: OCA/stock-logistics-warehouse | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_vertical_lift | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/153/12.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
Add configuration and dedicated screens to work with Vertical Lift | ||
systems (such as Kardex Remstar, Modula, ...). Drivers for controlling | ||
the lifts physically must be added by additional addons. | ||
|
||
.. 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://github.com/OCA/odoo-community.org/blob/master/website/Contribution/oca_module_lifecycle_development_status.rst>`_ | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
General | ||
~~~~~~~ | ||
|
||
In Inventory Settings, you must have: | ||
|
||
* Storage Locations | ||
* Multi-Warehouses | ||
* Multi-Step Routes | ||
|
||
Locations | ||
~~~~~~~~~ | ||
|
||
Additional configuration parameters are added in Locations: | ||
|
||
* Sub-locations of a location with the "Is a Vertical Lift View Location" | ||
activated are considered as "Shuttles". A shuttle is a vertical lift shelf. | ||
* Sub-locations of shuttles are considered as "Trays", which is a tier of a | ||
shuttle. When a tray is created, a tray type must be selected. When saved, the | ||
tray location will automatically create as many sub-locations - called | ||
"Cells" - as the tray type contains. | ||
* The tray type of a tray can be changed as long as none of its cell contains | ||
products. When changed, it archives the cells and creates new ones as | ||
configured on the new tray type. | ||
|
||
Tray types | ||
~~~~~~~~~~ | ||
|
||
Tray types can be configured in the Inventory settings. | ||
A tray type defines how much cells a tray can hold. It is a square or rectangle | ||
matrix of n cols * m rows. | ||
|
||
Vertical Lift Shuttles | ||
~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The Shuttles are the Vertical Lift Trays. One Shuttle entity has to be created | ||
in Odoo for each physical shuttle. Depending of the subsidiary addons installed | ||
(eg. Kardex), different options may be required (host address, ...). The base | ||
addon only includes shuttles of kind "simulation" which will not send orders to | ||
the hardware. | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
* Extract the tray types and matrix widget in a module, they can be used | ||
alone without vertical lift | ||
* Consider merging the 'vertical_lift_kind' with the kind added by | ||
stock_location_zone | ||
* Complete Pick screen and workflow (currently enough for a demo, not for production) | ||
* Implement Put-away screen and workflow | ||
* Implement Inventory screen and workflow | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/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/stock-logistics-warehouse/issues/new?body=module:%20stock_vertical_lift%0Aversion:%2012.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 | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Guewen Baconnier <[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/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_vertical_lift>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from . import models | ||
from . import controllers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright 2019 Camptocamp SA | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Vertical Lift", | ||
"summary": "Provides the core for integration with Vertical Lifts", | ||
"version": "13.0.1.0.0", | ||
"category": "Stock", | ||
"author": "Camptocamp, Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"depends": [ | ||
"stock", | ||
"barcodes", | ||
"base_sparse_field", | ||
"stock_location_tray", # OCA/stock-logistics-warehouse | ||
"web_notify", # OCA/web | ||
"web_ir_actions_act_view_reload", # OCA/web | ||
], | ||
"website": "https://github.com/OCA/stock-logistics-warehouse", | ||
"demo": [ | ||
"demo/stock_location_demo.xml", | ||
"demo/vertical_lift_shuttle_demo.xml", | ||
"demo/product_demo.xml", | ||
"demo/stock_inventory_demo.xml", | ||
"demo/stock_picking_demo.xml", | ||
], | ||
"data": [ | ||
"views/stock_location_views.xml", | ||
"views/stock_move_line_views.xml", | ||
"views/vertical_lift_shuttle_views.xml", | ||
"views/vertical_lift_operation_base_views.xml", | ||
"views/vertical_lift_operation_pick_views.xml", | ||
"views/vertical_lift_operation_put_views.xml", | ||
"views/vertical_lift_operation_inventory_views.xml", | ||
"views/stock_vertical_lift_templates.xml", | ||
"views/shuttle_screen_templates.xml", | ||
"security/ir.model.access.csv", | ||
"data/ir_sequence.xml", | ||
], | ||
"installable": True, | ||
"development_status": "Alpha", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import logging | ||
import os | ||
|
||
from odoo import http | ||
from odoo.http import request | ||
|
||
_logger = logging.getLogger(__name__) | ||
|
||
|
||
class VerticalLiftController(http.Controller): | ||
@http.route(["/vertical-lift"], type="http", auth="public", csrf=False) | ||
def vertical_lift(self, answer, secret): | ||
if secret == os.environ.get("VERTICAL_LIFT_SECRET", ""): | ||
rec = request.env["vertical.lift.command"].sudo().record_answer(answer) | ||
return str(rec.id) | ||
else: | ||
_logger.error( | ||
"secret mismatch: %r != %r", | ||
secret, | ||
os.environ.get("VERTICAL_LIFT_SECRET", ""), | ||
) | ||
raise http.AuthenticationError() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record model="ir.sequence" id="sequence_kardex_command"> | ||
<field name="name">Vertical Lift Commands</field> | ||
<field name="code">vertical.lift.command</field> | ||
<field name="prefix">L</field> | ||
<field name="padding">6</field> | ||
<field name="company_id" eval="False" /> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="product_running_socks" model="product.product"> | ||
<field name="default_code">RS200</field> | ||
<field name="barcode">4491673293664</field> | ||
<field name="name">Running Socks</field> | ||
<field name="type">product</field> | ||
<field name="categ_id" ref="product.product_category_6" /> | ||
<field name="lst_price">30.0</field> | ||
<field name="standard_price">20.0</field> | ||
<field name="weight">1.0</field> | ||
<field name="tracking">none</field> | ||
<field name="uom_id" ref="uom.product_uom_unit" /> | ||
<field name="uom_po_id" ref="uom.product_uom_unit" /> | ||
</record> | ||
<record id="product_recovery_socks" model="product.product"> | ||
<field name="default_code">RS300</field> | ||
<field name="barcode">2779891103531</field> | ||
<field name="name">Recovery Socks</field> | ||
<field name="type">product</field> | ||
<field name="categ_id" ref="product.product_category_6" /> | ||
<field name="lst_price">30.0</field> | ||
<field name="standard_price">20.0</field> | ||
<field name="weight">1.0</field> | ||
<field name="tracking">none</field> | ||
<field name="uom_id" ref="uom.product_uom_unit" /> | ||
<field name="uom_po_id" ref="uom.product_uom_unit" /> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
<record id="stock_inventory_vertical_lift_0" model="stock.inventory"> | ||
<field name="name">Starting Vertical Lift Inventory</field> | ||
</record> | ||
<record id="stock_inventory_vertical_lift_line_1" model="stock.inventory.line"> | ||
<field name="product_id" ref="product_running_socks" /> | ||
<field name="product_uom_id" ref="uom.product_uom_unit" /> | ||
<field name="inventory_id" ref="stock_inventory_vertical_lift_0" /> | ||
<field name="product_qty">30.0</field> | ||
<field | ||
name="location_id" | ||
ref="stock_location_vertical_lift_demo_tray_1b_x3y2" | ||
/> | ||
</record> | ||
<function model="stock.inventory" name="_action_start"> | ||
<function | ||
eval="[[('state','=','draft'),('id', '=', ref('stock_vertical_lift.stock_inventory_vertical_lift_0'))]]" | ||
model="stock.inventory" | ||
name="search" | ||
/> | ||
</function> | ||
<function model="stock.inventory" name="action_validate"> | ||
<function | ||
eval="[[('state','=','confirm'),('id', '=', ref('stock_vertical_lift.stock_inventory_vertical_lift_0'))]]" | ||
model="stock.inventory" | ||
name="search" | ||
/> | ||
</function> | ||
</odoo> |
Oops, something went wrong.