16 Commits

Author SHA1 Message Date
SilvioC2C
08fc5599be [IMP] stock_vertical_lift: add autovacuum for shuttle commands 2024-02-26 17:31:27 +01:00
Simone Orsi
0507f88030 stock_vertical_lift: add controller tests 2022-05-03 16:21:01 +02:00
Hai Lang
73b1c95adc [IMP] stock_vertical_lift: increase coverage 2021-11-22 19:37:04 +07:00
Telmo Santos
53eacf9af3 [13] Fix stock_vertical_lift skip screen
Fix unit tests

fixup! [13] Fix stock_vertical_lift skip screen

Rename variable to current_move_line

fixup! Rename variable to current_move_line
2021-11-22 19:36:16 +07:00
dzung.tran
80d93bffbc [MIG] stock_vertical_lift: Migration to 14.0 2021-09-17 07:47:34 +07:00
Carlos Serra-Toro
e1e417b5f7 [IMP] stock_vertical_lift: Add skip operation to vertical lift shuttles
In the screen for the vertical lift shuttles, accessible through
Inventory > Operations > Vertical Lift Shuttles, a new button has been
added to allow to skip an operation. This button can also be triggered
by scanning the barcode O-BTN.skip.svg that is inside the folder
'images'.

When a skip is done, the next stock.move.line to pick is chosen and
shown to the operator. A skipped move line is added to the end of the
list of pending move lines to be picked, so they will be shown again
in the future as soon as the other move lines have been successfully
processed.

This option was added because, sometimes, the operator can not process
a move line for whatever reason. Right now, the only way of proceeding
is to wait until he/she can effectively process it, which involves a
delay in the operations. With this new skip operation, the operator
can continue processing the rest of move lines.
2021-09-16 20:17:34 +07:00
Sébastien Alix
ff4d9bbfad [FIX] stock_vertical_lift: handles multiple move lines on pick
If there is two move lines for the same product in the vertical lift
(stored in2 differents trays for instance), the pick scenario was
failing when the user was processing the first line.

To circumvent this, instead of validating directly the move, we put the line
in its own stock move, then we put the stock move in its own transfer and
validate this one.

Methods used to do that have been copied from the `shopfloor` module,
they probably deserves their own module as they are quite generic.
2021-09-16 20:17:33 +07:00
Guewen Baconnier
f2553e0fc3 Allow changing a putaway tray type after assigned
When the shuttle screen propose a tray based on a tray type and we
are in the 'save' step, where we are supposed to physically putaway
the good and save, we should still be able to change the tray type
to fetch another tray.
2021-09-16 20:17:33 +07:00
Guewen Baconnier
abdde7cbf5 Add stock_vertical_lift_storage_type
Compatibility module between stock_vertical_lift and stock_storage_type
(in OCA/wms).

In the vertical lift's Putaway screen, when a good is scanned for a putaway, the
user has to scan the tray type of the corresponding size, so an empty place in a
matching tray is found. When we use storage types, we should know what tray is
compatible with the storage type.

Changes with this module:

* The storage types of trays cannot be selected in the locations form, they have
  to be set in the Tray types.
* In the lift put-away screen, when a package has a storage type, the user isn't
  asked to scan a tray type, instead, the putaway of the Package Storage Type is
  applied.
2021-09-16 20:17:33 +07:00
Guewen Baconnier
7d78e8b540 Rework workflows using a small state machine
The documentation of the state machine is in
VerticalLiftOperationBase._transitions.
2021-09-16 20:17:33 +07:00
Guewen Baconnier
439d2bc72c [MIG] stock_vertical_lift{,_kardex}: Migration to 13.0 2021-09-16 20:17:33 +07:00
Guewen Baconnier
d9cbd996b0 [IMP] stock_vertical_lift: black, isort 2021-09-16 20:17:33 +07:00
Guewen Baconnier
abb323ce89 Implement inventory screen 2021-09-16 20:17:33 +07:00
Guewen Baconnier
fcd1c6b766 Add Put-Away workflow 2021-09-16 20:17:33 +07:00
Guewen Baconnier
4d3ce20810 Split the shuttle operations in different models/views
Namely, the pick/put/inventory operations are now split in
different models.

Pick and Put share a model and customize their behavior, which is pretty
similar. The inventory operation will have a different view and
different workflow.

This changes will ease a lot the customization of the different
workflows and views.
2021-09-16 20:17:33 +07:00
Guewen Baconnier
fc52390b14 Add stock_vertical_lift module 2021-09-16 20:17:33 +07:00