Commit Graph

35 Commits

Author SHA1 Message Date
OCA-git-bot
ad0e3c2781 Merge PR #1597 into 14.0
Signed-off-by pedrobaeza
2023-01-04 19:06:07 +00:00
RabbitJon-S73
bb74c77cb5 [IMP] stock_move_location: change location domain 2023-01-02 11:03:13 +01:00
Aungkokolin1997
15c3e91887 [FIX] stock_move_location: stock_move_location_line_ids 2022-12-30 08:23:14 +06:30
Abraham Anes
f651bac545 [14.0][IMP] stock_move_location: owner support 2022-11-22 11:54:49 +01:00
Abraham Anes
321c93e961 [14.0][IMP] stock_move_location: packages support 2022-11-22 11:44:48 +01:00
jordan
e0292afafa [imp] onchange picking_type_id 2022-09-07 09:15:20 +02:00
Akim Juillerat
86dc04928d stock_move_location: Remove update of assigned moves location
The update of the source location of a move is not a good idea, as
shown in the test case that is modified by this commit and explained
below.

In general, a stock.move will be linked to a stock.picking whose
location_id and location_dest_id are defined by the picking type.
As such, the stock.move will inherit these locations and it is the
assignation of the stock.move that will create a stock.move.line
where the location (in case of outgoing picking) or the destination
location (in case of incoming picking through putaway) will be a
sub location of the respective location defined on the move.

So, if we want to empty a stock.location and move all its content
to another stock.location, we do not want to update the location
of the reserved moves, since it can break the reservation mechanism
of Odoo, as the assignation of a move will always look into the
children locations of the move, and it is not supposed to be updated
by any internal transfer, to what could be a children location.

Then, if internal transfers were planned from the location that is
being emptied, but are supposed to be executed after the location
has been emptied, there is probably an issue with the planning and
the sequence in which both transfers are being executed.
Since the internal transfer being updated in the test case was also
moving from a shelf location to its parent (where technically the goods
are already, since they are in a child location), we should prefer not
breaking the standard workflow of Odoo instead of supporting a corner
case with an internal transfer.

I guess we can revisit my assumption if we have a good reason to update
the stock location, but the one that was tested doesn't seem to be
good enough to justify breaking a standard mechanism.
2022-09-05 18:51:15 +02:00
Iryna Vushnevska
ec1cbb0e76 [IMP] add posibility to move only not reserved quantity 2021-12-21 15:51:37 +07:00
Iryna Vushnevska
a2d52d0bbd [IMP] stock_move_location add posibility to set picking instead of creation 2021-12-21 15:51:37 +07:00
Florent Xicluna
1a446ffbcf [FIX] adapt syntax for act_window lookup 2021-12-09 13:41:34 +01:00
João Marques
f589c4808d [MIG] stock_move_location: Migration to 14.0
TT26454
2020-12-04 09:38:10 +00:00
sergio-teruel
28a4a60824 [IMP + FIX] stock_move_location: Display reserved quantity in wizard lines. Reassign reserved quantities for quants moved. 2020-12-02 07:39:43 +00:00
Sergio Teruel
01de75371c [IMP] stock_move_location: Allow to select any location. 2020-12-02 07:39:43 +00:00
OCA-git-bot
0903217219 pre-commit update 2020-12-02 07:39:43 +00:00
hveficent
322a9591ac [FIX] stock_move_location: Error on onchange origin location 2020-12-02 07:39:43 +00:00
Sergio Teruel
6da116db36 [IMP] stock_move_location: Allow to disable apply putaway strategy 2020-12-02 07:39:43 +00:00
Sergio Teruel
db65653652 [FIX] stock_move_location: Keep product lines when user launch wizard from stock quant view 2020-12-02 07:39:43 +00:00
Joan Sisquella
785279db5f [MIG] stock_move_location: Migration to 13.0 2020-12-02 07:39:43 +00:00
Joan Sisquella
50d51c6f83 [IMP] stock_move_location: black, isort 2020-12-02 07:39:43 +00:00
Joan Sisquella
85a7b4d822 [11.0][FIX] stock_move_location:
* fix test as per migration
* fix inconsistency in reserved quantity for planned transfers
2020-12-02 07:39:43 +00:00
Lois Rilo
c850f4b02d [11.0][IMP] stock_move_location:
* fix tests as per latest changes
* extend test as per latest changes
* add little help in technical fields
2020-12-02 07:39:43 +00:00
Jordi Ballester Alomar
1f51887d13 display picking type in move location wizard, and get a default value 2020-12-02 07:39:43 +00:00
Jordi Ballester Alomar
f95da47cf4 in planned transfers do not set the qty_done in move lines 2020-12-02 07:39:43 +00:00
Jordi Ballester Alomar
83f484259b This commit introduces changes to stock_move_location:
- The ability to start the wizard from a picking type in the inventory dasbhoard
- A toggle to edit the origin and destination locations.
2020-12-02 07:39:43 +00:00
Joan Sisquella
9aa5edd09f [12.0][FIX][stock_move_location] Planned transfer: quantity done 2020-12-02 07:39:43 +00:00
Joan Sisquella
88d7bcc183 [12.0][IMP] stock_move_location: Applies put away strategy 2020-12-02 07:39:43 +00:00
Joan Sisquella
7222cafdfc [MIG] stock_move_location to v12
[FIX] improvement move line generation
2020-12-02 07:39:43 +00:00
Sergio Teruel
89140e18b4 [11.0][FIX] stock_move_location: Not check availability when do immediate transfer. 2020-12-02 07:39:43 +00:00
Sergio Teruel
9bb0ce24cd [11.0][IMP] stock_move_location: Allow move products from one location to another directly from selected quants 2020-12-02 07:39:43 +00:00
sebalix
9bbd18b4b4 [FIX] stock_move_location: fix the 'group_lines()' method
A recordset object is not reliable enough to use as a key for the
built-in 'sorted' and 'itertools.groupby' functions (sometimes it works,
sometimes not).
Using the ID of the record (here the product ID) can fix the problem, but the
'group_lines()' has been totally rewritten for a simpler implementation without
any use of 'sorted' or 'itertools.groupby' functions to group the wizard lines
by product: an iteration on lines to fill a dictionary does the job.
2020-12-02 07:39:43 +00:00
sebalix
a05acd418c [11.0][MIG] stock_move_location: fixing/improving code + add a roadmap
for further improvements
2020-12-02 07:39:43 +00:00
mpanarin
a3cda8db38 prevent user from creating lots from the wizard 2020-12-02 07:35:04 +00:00
mpanarin
3546b770a4 [IMP] refactor to use pickings instead of inventories 2020-12-02 07:35:04 +00:00
mpanarin
19c60699c2 [MIG] 11.0 stock_move_location 2020-12-02 07:35:04 +00:00
Mathieu Vatel
1949b367fd [ADD] stock_move_location 2020-12-02 07:35:04 +00:00