Created on 2021-06-22.17:58:38 by firstname.lastname@example.org, last changed 1 month ago by roundup-bot.
New changeset 77bdf8b6d1ce by Cédric Krier in branch '6.0': Allow creating draft move between warehouses https://hg.tryton.org/modules/product_cost_warehouse/rev/77bdf8b6d1ce
New changeset 9215ee741a9c by Cédric Krier in branch 'default': Allow creating draft move between warehouses https://hg.tryton.org/tryton-env/rev/9215ee741a9c
New changeset 2311b918f88b by Cédric Krier in branch 'default': Allow creating draft move between warehouses https://hg.tryton.org/modules/product_cost_warehouse/rev/2311b918f88b
Here is review338481002 which disable the validation for staging and draft moves and update the test.
I think we need to control draft moves . See at scenario test  that control moves from_location / to_location in differents warehouses:
>>> move = StockMove() >>> move.product = product >>> move.quantity = 1 >>> move.from_location = warehouse1.storage_location >>> move.to_location = warehouse2.storage_location >>> move.save()
I don't understand the message "To move products between "%(from)s" and "%(to)s", you must use the internal shipment transit location" when is the case that we do an internal shipment.
How to do a internal shipment between two warehouses?
Wareause1 / Loc1 -> to -> Wareahouse2 / Loc2 ?
In case you try do an internal shipment, we recibe the "msg_move_storage_location_same_warehouse" message .
I do no think we should skip all internal shipments but only the ones that are in draft state which is the one before the transt moves are created.
I understand that when movements that are related in shipment intern, not required to validate cost.
There is validation in the code of the product_cost_warehouse to ensure that all movements between internal locations use the traffic location. A move between internal locations cannot be saved without going through the transit location
When an internal delivery note is created, Tryton needs to save the log to include the transit location in the movements. The problem is that Tryton cannot save the first move as it does not pass the commented validation.
messages: + msg69172
|2021-07-22 19:09:46||roundup-bot||set||messages: + msg69031|
nosy: + roundup-bot
status: testing -> resolved
|2021-07-20 09:28:44||pokoli||set||keyword: + backport|
|2021-07-20 09:24:28||reviewbot||set||messages: + msg68936|
|2021-07-19 23:24:51||ced||link||issue10586 superseder|
|2021-07-19 19:43:46||reviewbot||set||messages: + msg68933|
|2021-07-19 19:15:27||ced||set||assignedto: resteve -> ced|
messages: + msg68932
reviews: 344541002 -> 344541002,338481002
status: chatting -> testing
|2021-07-19 19:13:35||resteve||set||messages: + msg68931|
nosy: + reviewbot
Showing 10 items. Show all history (warning: this could be VERY long)