12 Commits

Author SHA1 Message Date
Guewen Baconnier
b76cabdc87 Add release (close) of vertical lift trays
* Rename methods that fetch a tray to prevent confusion
* Add methods to release a tray
* The Kardex method to fetch a tray has to send "0" in the carrier and
  carrierNext field
* The pick and inventory screens release the tray only when there is no next
  line, because the release is implicit when we fetch the next line,
  the put screen releases everytime because the operator may take time
  to start the next line and we don't know if they are going to scan a
  next line or not.
* Exiting the screen or switching screen between put/pick/put-away has
  to release the tray as well.
2021-09-20 14:41:58 +07:00
Guewen Baconnier
2592d97823 Rework workflows using a small state machine
The documentation of the state machine is in
VerticalLiftOperationBase._transitions.
2021-09-20 14:41:57 +07:00
Alexandre Fayolle
15d21a1b19 [FIX] laser position are integers 2021-09-20 14:41:57 +07:00
Alexandre Fayolle
2f1233023c [IMP] raise exceptions when config NOK
we need a level to fetch a tray
we need the tray dimensions to point a cell
2021-09-20 14:41:57 +07:00
Alexandre Fayolle
af0e12231b [FIX] laser pointer command
The parameter was not passed in the method chain, loosing track
of the cell to which the laser pointer should be pointed at.
2021-09-20 14:41:57 +07:00
Alexandre Fayolle
6fc160d25f [IMP] Fix naming of the shuttle address
we hardcode the ID of the gate for now, hence we support
only a single gate.
2021-09-20 14:41:57 +07:00
Guewen Baconnier
004eaef296 [MIG] stock_vertical_lift{,_kardex}: Migration to 13.0 2021-09-20 14:41:57 +07:00
Guewen Baconnier
f27c4d0de5 [IMP] stock_vertical_lift: black, isort 2021-09-20 14:41:57 +07:00
Alexandre Fayolle
ebcd872bb9 [IMP] add a proxy to communicate with the kardex server 2021-09-20 14:41:57 +07:00
Alexandre Fayolle
18c6aa1dd3 [IMP] abstract communication with shuttle 2021-09-20 14:41:57 +07:00
Guewen Baconnier
24d41819d3 Add method on location to fetch a tray
* Add vertical_lift_shuttle_id field on stock.location, help to find the
shuttle for a location
* Add StockLocation.fetch_vertical_lift_tray(), that needs to be
implemented in addons to send commands to the hardward to fetch a tray,
and if existing show a cell (laser pointer, ...)
* Add helpers on stock.move.line fetch_vertical_lift_tray_source() and
fetch_vertical_lift_tray_dest() that fetch the tray directly from a move
line's source or destination location
2021-09-20 14:41:57 +07:00
Guewen Baconnier
cbd73acaee Add stock_vertical_lift module 2021-09-20 14:41:57 +07:00