Commit Graph

61 Commits

Author SHA1 Message Date
Pedro M. Baeza
436803b04b [FIX+IMP] Update dotfiles + switch to GH actions 2022-05-28 14:17:25 +02:00
oca-travis
fa1af2be32 [UPD] Update stock_vertical_lift.pot 2021-04-01 12:31:41 +00:00
OCA-git-bot
a2e68c6a64 stock_vertical_lift 13.0.1.3.1 2021-04-01 12:05:48 +00:00
oca-travis
f3a86bd7a9 [UPD] Update stock_vertical_lift.pot 2021-04-01 11:33:24 +00:00
Telmo Santos
7e1ce3a978 [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-03-23 08:51:40 +01:00
OCA-git-bot
d228ce74ba stock_vertical_lift 13.0.1.3.0 2021-03-12 14:55:15 +00:00
Carlos Serra-Toro
f5790d8f31 [ADD] stock_vertical_lift_empty_tray_check: is the tray empty?
A vertical lift retrieves a tray and places it in front of the
user, and depending on the quantity the user takes from it,
it adapts the pending quantity in the tray. However, because of
errors, it could be that the system thinks the tray is empty
while it is not. With this module, when the system thinks the
tray is empty, while in the step for the release of the tray
the operator is asked explicitly to check if the tray is
actually empty. Depending on his/her answer (yes/no) an inventory
adjustment is created stating the situation.

To activate this optional feature, a new configuration setting
has been added to Inventory > Configuration > Settings, named
'Check Empty Tray'. It is deactivated by default.

Developing decisions:
- The screens shown to the operator are actually wizards, but
  since in the original module (`stock_vertical_lift`) they
  were considered (on the source tree) as views, this has been
  continued here.
- It has been decided, to not change the current workflow of
  the operators, to embed the new check inside the step for
  the 'release'. So, a new screen is shown to ask for the
  visual inspection of whether the tray is empty. In
  order to test this easily, the method `button_release` of
  the module `stock_vertical_lift` has been slightly modified
  so that it always returns. This way we can check easily
  in the unit-tests for the outcome of the intermediate
  screen (i.e. wizard) ─ similarly to how it is done when
  validating a picking that can result in a backorder.
2021-03-12 12:15:28 +01:00
OCA-git-bot
97ee6c10bd stock_vertical_lift 13.0.1.2.1 2021-02-22 11:48:26 +00:00
oca-travis
63716dc239 [UPD] Update stock_vertical_lift.pot 2021-02-22 11:16:04 +00:00
Carlos Serra-Toro
8e94a0d266 [FIX] stock_vertical_lift: skip button is only for pick operation
The button to skip an operation is only implemented for the pick
operation (not for the put or for the inventory ones) but it was
shown in the screens for all the operations, yielding to a stack
trace when it was pressed from the wrong operationg. The button
has been moved now to the screen for the pick operation, only.
2021-02-19 17:19:09 +01:00
oca-travis
20d0a8822a [UPD] Update stock_vertical_lift.pot 2021-01-26 08:20:41 +00:00
OCA-git-bot
10aa2a8d49 stock_vertical_lift 13.0.1.2.0 2021-01-26 08:09:05 +00:00
OCA-git-bot
c20cdd37c5 [UPD] README.rst 2021-01-26 08:09:04 +00:00
oca-travis
f78a95ca4c [UPD] Update stock_vertical_lift.pot 2021-01-26 07:40:38 +00:00
Carlos Serra-Toro
cd65caff20 [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-01-25 12:02:21 +01:00
oca-travis
acba4b3b61 [UPD] Update stock_vertical_lift.pot 2021-01-05 09:19:51 +00:00
OCA-git-bot
6f12fa14e9 stock_vertical_lift 13.0.1.1.3 2021-01-05 09:03:36 +00:00
oca-travis
0b530f9aa9 [UPD] Update stock_vertical_lift.pot 2021-01-05 08:34:41 +00:00
Guewen Baconnier
acacc17dc5 Revert "[13.0][FIX] stock_vertical_lift: Error in tests" 2021-01-05 07:44:45 +01:00
oca-travis
aeb3a03edd [UPD] Update stock_vertical_lift.pot 2021-01-04 12:02:36 +00:00
OCA-git-bot
01de49494a stock_vertical_lift 13.0.1.1.2 2021-01-04 11:50:59 +00:00
oca-travis
c7859f780f [UPD] Update stock_vertical_lift.pot 2021-01-04 11:21:45 +00:00
Sébastien Alix
67aadf5a10 [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-01-04 11:25:06 +01:00
oca-travis
18f6c1e60a [UPD] Update stock_vertical_lift.pot 2020-12-28 18:14:42 +00:00
OCA-git-bot
599ca1b061 stock_vertical_lift 13.0.1.1.1 2020-12-28 18:03:18 +00:00
oca-travis
4e945d2b92 [UPD] Update stock_vertical_lift.pot 2020-12-28 17:34:09 +00:00
Víctor Martínez
a52686dd23 [FIX] stock_vertical_lift: Error in tests 2020-12-28 17:06:05 +01:00
OCA-git-bot
527ddd6f1e stock_vertical_lift 13.0.1.1.0 2020-10-29 09:32:09 +00:00
Guewen Baconnier
771955d5fe Improve put-away release in vertical lift
If we have several goods to put in the same tray, it is inefficient to
release (close) the tray between each line if we reopen the same tray.
Release the tray only when the last line is reached.
2020-10-28 14:30:57 +01:00
OCA-git-bot
de247554c3 [ADD] icon.png 2020-09-29 15:50:32 +00:00
OCA-git-bot
de20e9f151 [UPD] README.rst 2020-09-29 15:50:32 +00:00
oca-travis
c229619278 [UPD] Update stock_vertical_lift.pot 2020-09-29 14:33:54 +00:00
Guewen Baconnier
f3cf90af3b inventory: always fetch tray
The check was means as an optimization: no need to fetch at tray already
open. But "fetch_tray" will not only open the tray, it may also move the
laser on the exact position. So  we should do it for every inventory line.
2020-09-09 10:38:15 +02:00
Simone Orsi
46cb50e13a stock_vertical_lift: change x/y tray order 2020-09-07 13:05:16 +02:00
Simone Orsi
775a9f944f stock_vertical_lift: make pkg compute more solid (#16)
* stock_vertical_lift: make pkg compute more solid

Somehow sometimes you can get a move line without product
while computing product packaging in inventory.

Make it more defensive and skip packaging rendering if no product is
there.
2020-09-03 13:09:10 +02:00
Simone Orsi
43bac7a671 stock_vertical_lift: packaging template more flexible
As the template is not used by JS we can pass full objects to it.
This way we can use any recordset information directly in the template
without having to override the method.
2020-09-02 13:14:54 +02:00
Guewen Baconnier
c228f27bfa Prevent crash if 2 packages have the same name 2020-08-27 11:50:34 +02:00
Guewen Baconnier
a0794f43fb 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.
2020-08-27 11:50:34 +02:00
Guewen Baconnier
3f68e5caaf Putaway: show rainbow man when all the lines are putaway 2020-08-27 11:50:34 +02:00
Guewen Baconnier
e01d754e93 Extract methods to allow more precise overrides 2020-08-27 11:50:34 +02:00
Guewen Baconnier
5fa7e38e0a 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.
2020-08-27 11:50:34 +02:00
Guewen Baconnier
1c56825b1a 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.
2020-08-27 11:50:34 +02:00
Guewen Baconnier
feb1aa1d80 Rework workflows using a small state machine
The documentation of the state machine is in
VerticalLiftOperationBase._transitions.
2020-08-27 11:50:34 +02:00
Guewen Baconnier
cf71354644 Execute the barcode scanner method as side-effect method
Instead of going through the onchange machinery.
The intended usage of onchange methods is to update something on the
screen, without side-effects in the database, then let the user save
the form with the proposed changes.

Weirdly, the barcode scanner event triggers an onchange on the field
`_barcode_scanned`.

It doesn't work well with our use case, as the whole form is read-only
and we only care about having the barcode events doing side-effects on
the backend and displaying back the changes.

This particular onchange will then be executed as a normal method, with
side-effects. However, contrarily to other actions on the form, the
frontend does not reload the view after an onchange, as it relies on the
data returned back in the values. As we cannot know which values may
have been changed in the different implementations (location
destination, state, ...), the onchange returns a read with every field.
2020-08-27 11:50:34 +02:00
Guewen Baconnier
4dfc22f11b Fix issues in Pick mode
* The change of destination location was not updated on the screen when
  the barcode was scanned (it was when the "manual barcode wizard" is
  used though)
* We should be able to pick partially available move lines
* prevent to scan a location when no move line is selected or the move
  line has already been set to done
2020-08-27 11:50:34 +02:00
Alexandre Fayolle
8c283b3ab3 [FIX] command key must be a string
not a list
2020-08-27 11:50:34 +02:00
Guewen Baconnier
6b4c0045fe run pre-commit with new prettiers 2020-08-27 11:50:34 +02:00
Guewen Baconnier
141a0e6c75 Replace custom js by 'target': 'main' 2020-08-27 11:50:34 +02:00
Guewen Baconnier
b574c829c1 [MIG] stock_vertical_lift{,_kardex}: Migration to 13.0 2020-08-27 11:50:34 +02:00
Guewen Baconnier
e6733ddf73 [IMP] stock_vertical_lift: black, isort 2020-08-27 11:50:34 +02:00