Commit Graph

1514 Commits

Author SHA1 Message Date
OCA Transbot
62e575b699 OCA Transbot updated translations from Transifex 2020-09-08 10:47:25 +02:00
Jordi Ballester
fadb1839d0 auto_create_group should be false when group_propagation_option is not 'propagate' 2020-09-08 10:47:25 +02:00
lreficent
a218feb108 hide if propagation option is not "propagate" 2020-09-08 10:47:25 +02:00
lreficent
4bd0f381ac [9.0][ADD] procurement_auto_create_group: add tests 2020-09-08 10:47:25 +02:00
Jordi Ballester
9f5ed267f9 add module 'procurement_auto_create_group' to 9.0 2020-09-08 10:47:25 +02:00
Simone Orsi
46cb50e13a stock_vertical_lift: change x/y tray order 2020-09-07 13:05:16 +02:00
OCA-git-bot
b660007c72 [ADD] setup.py 2020-09-04 16:07:28 +00:00
OCA-git-bot
007db691b1 [UPD] README.rst 2020-09-04 16:07:28 +00:00
oca-travis
17650b691a [UPD] Update stock_quant_manual_assign.pot 2020-09-04 15:43:10 +00:00
OCA-git-bot
ff4e989998 Merge PR #877 into 13.0
Signed-off-by gurneyalex
2020-09-04 15:18:07 +00:00
OCA-git-bot
106f1541cc Merge PR #959 into 13.0
Signed-off-by pedrobaeza
2020-09-04 14:31:27 +00: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
Ivàn Todorovich
6a5d609dd3 [FIX] Remove migration scripts 2020-09-02 17:20:00 +02:00
OCA-git-bot
41ec69d6c4 [ADD] setup.py 2020-09-02 13:38:17 +00:00
OCA-git-bot
b482a2fe46 [ADD] icon.png 2020-09-02 13:38:17 +00:00
OCA-git-bot
597fc22e1e [UPD] README.rst 2020-09-02 13:38:16 +00:00
oca-travis
1c328f2292 [UPD] Update stock_picking_consolidation_priority.pot 2020-09-02 13:15:15 +00:00
OCA-git-bot
0b90eb6112 Merge PR #941 into 13.0
Signed-off-by simahawk
2020-09-02 13:04:52 +00:00
oca-travis
98399f9bf6 [UPD] Update stock_cubiscan.pot 2020-09-02 12:14:13 +00:00
OCA-git-bot
37049ef59d stock_cubiscan 13.0.1.1.0 2020-09-02 12:04:52 +00:00
OCA-git-bot
3a6a7c0359 [UPD] README.rst 2020-09-02 12:04:51 +00:00
oca-travis
6deaff8f84 [UPD] Update stock_cubiscan.pot 2020-09-02 11:41:53 +00:00
OCA-git-bot
028d62a91d Merge PR #884 into 13.0
Signed-off-by simahawk
2020-09-02 11:19:22 +00:00
Simone Orsi
bd041a3def Add stock_vertical_lift_packaging_type 2020-09-02 13:14:54 +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
hveficent
a2fa620d21 [13.0][ADD] stock_request_mrp 2020-09-02 10:56:22 +02:00
Guewen Baconnier
ab62cbc7dc Raise priority only if the direct next move has consolidation
In the following graph:

                  PICK/001 ━►  PACK/001  ┓
                                         ┃
                  PICK/002 ┓             ┣━► OUT/001
                           ┣━► PACK/002  ┛
       INT/001 ━► PICK/003 ┛

If we have the consolidate flag on "PACK", we want to raise the priority
only when we start to move goods in PACK/001 or PACK/002 (not INT/001),
because this is in the packing zone that we are limited in space.

Also, when for instance a move of PICK/002 or PICK/003 is set to done,
*any* move (all products) that go to PACK/002 are concerned by the
priority raise: we want to finish the transfer.
2020-08-27 11:52:00 +02:00
Guewen Baconnier
c228f27bfa Prevent crash if 2 packages have the same name 2020-08-27 11:50:34 +02:00
Guewen Baconnier
a7d8fe6a7d Fix default value with server environment 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
3711267c4f Add stock_vertical_lift_server_env
Compatibility layer between server_environment and stock_vertical_lift
2020-08-27 11:50:34 +02:00
Guewen Baconnier
912a3e9239 Fix test incompatibility with stock_reserve_rule
The rules created in demo data of stock_reserve_rule make the tests of
stock_vertical_lift (and possibly other modules) fail because the
transfers can't be made available.

Deactivate the rule in stock_reserve_rule and activate it only in its
tests. Users can still activate the rule manually to test.
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
c16a5e308b Ignore storage types constraints on quants in cells
When the putaway selects a tray and a cell according to the storage
type, we still want the user to be able to override the selection by
scanning another tray type.
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
823e11fafd Ask to scan a tray type when no storage type is configured
The use cases we want to cover are:

1. Putaway for a package/good without storage type
2. Putaway for a package with a storage type configured to be
   stored in a tray (associated with a tray type)
3. Putaway for a package with a storage type NOT configured on a tray
   type

The case 1. is implement in "stock_vertical_lift", the 2. was already
implement in this module, this commit implements the case 3.

A typical flow is:

* We configure a generic Kardex Box storage type, not associated with
  any tray type, that is set on the package at reception (the reception
  person doesn't know the tray type at this point). this Kardex Box
  storage type is set on the Vertical Lift view (above the shuttles).
* On the putaway transfer, as per the configuration above, the putaway
  changes the destination location to the Vertical Lift view.
* When we scan the package in the shuttle's screen, as we have a storage
  type which is not configured on any locations in the shuttle
  (reminder, if we had, it would select the tray automatically), the
  user is asked to scan a tray type of the correct size.
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
318f101787 [FIX] laser position are integers 2020-08-27 11:50:34 +02:00
Alexandre Fayolle
63dd8a5c3b [IMP] raise exceptions when config NOK
we need a level to fetch a tray
we need the tray dimensions to point a cell
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
Alexandre Fayolle
97375bd90f [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.
2020-08-27 11:50:34 +02:00
Alexandre Fayolle
d5e8767067 stock_vertical_lift_kardex: add missing dependency
we use the `level` field to materialize the tablar index -> this
field is provided by `stock_location_position`
2020-08-27 11:50:34 +02:00
Alexandre Fayolle
55c6e662e7 [IMP] Fix naming of the shuttle address
we hardcode the ID of the gate for now, hence we support
only a single gate.
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
44576e6932 Add +x on kardex-proxy.py script 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