Commit Graph
36 Commits
Author SHA1 Message Date
Cédric Krier 052c70c7d3 Do not copy origin of stock moves in each shipment
The ShipmentMixin is also used by the production which does not have a moves
field.

Closes #13555
(grafted from 459a5802c208c7e723d3872d65823d094c60bee9)

--HG--
branch : 7.0
2024-10-01 18:32:18 +02:00
Cédric Krier d1535c2cc7 Do not copy origin of stock moves when duplicate shipments
Closes #13496
(grafted from b347d4dc4d4ed805bdbc6c926db3f6f90ebadd6a)

--HG--
branch : 7.0
2024-09-06 13:31:44 +02:00
Cédric Krier 2b48cf703f Do not display cancelled moves in shipment reports
Closes #13202
(grafted from 29176a5201d492908cbb816b8fed9492bb6fdc8e)

--HG--
branch : 7.0
2024-04-18 14:49:49 +02:00
Cédric Krier d48435fdc9 Try to assign automatically planned shipments in the past
Closes #13030
(grafted from e3bd5809ef0341afef8f9b65635d14bd2f9b37d5)

--HG--
branch : 7.0
2024-02-09 16:44:46 +01:00
Cédric Krier 409a2cec2f Allow assigned move of 0 quantity using view location and delete them
This is needed to be able to ignore assignation of move from a view location,
and to delete them before all moves are set to done.

Closes #12870
(grafted from 5ec6b6d3cd8cfffdb0f91ca350bc1ba65b5a5d8f)

--HG--
branch : 7.0
2023-12-26 16:00:06 +01:00
Cédric Krier 1ac187615e Update planned date of assigned move from shipment and production
Closes #12867
(grafted from 1caa3667c8759bfd92c315d12aae4fb5f57ad587)

--HG--
branch : 7.0
2023-12-23 02:32:43 +01:00
Cédric Krier 15fab631fb Do not raise warning when shipment quantity difference is 0
Closes #12817
(grafted from c1a7eab3434336300cb4c5d7785e32c107cf9e33)

--HG--
branch : 7.0
2023-12-11 16:35:18 +01:00
Cédric Krier 639ead79a6 Add number and reference fields to ShipmentMixin 2023-10-07 17:17:32 +02:00
Sergi Almacellas Abellana a22de3c794 Make shipment reference not readonly
Closes #11879
2023-05-17 09:04:54 +02:00
Maxime Richez ea052f9930 Set inventory moves readonly for picked customer shipment
Closes #12613
2023-10-05 13:33:29 +02:00
Cédric Krier 555102f942 Display shipment state on internal shipment report
Closes #12501
2023-08-26 12:54:44 +02:00
Cédric Krier f4f4a9cec1 Check outgoing product quantities for internal shipment 2023-08-23 19:45:33 +02:00
Cédric Krier 85712761dc Check inventory product quantities for customer return shipment 2023-08-23 19:37:13 +02:00
Cédric Krier da8f2d7c2d Check outgoing product quantities of customer shipment 2023-08-24 09:36:16 +02:00
Cédric Krier 742725d333 Do not prevent to pack customer shipment with cancelled inventory moves 2023-08-23 18:18:20 +02:00
Cédric Krier 9b2564145e Check inventory quantity of supplier shipment
Closes #4545
2023-08-23 19:04:28 +02:00
Cédric Krier 5de4f639db Store original planned date of shipments to compute delay 2023-09-10 21:27:51 +02:00
Cédric Krier cb08557fad Rename Uom to Unit for move and inventory
Closes #2221
2023-08-22 13:18:33 +02:00
Cédric Krier 8d7e1b6b83 Do not try to duplicate moves for transit if internal shipment has no move
Closes #12541
2023-09-04 16:47:49 +02:00
Cédric Krier 98eeb1727a Remove unused _location_amount from customer shipment
The method was introduced by a3aa9d985589 for the assign_try method but it is
no more used.
2023-08-20 01:18:11 +02:00
Cédric Krier 855a0aaeab Update origin of outgoing moves for internal shipment
When synchronize moves, the origin of outgoing is updated to point the
new incoming move instead of the original one.

Closes #12272
2023-08-25 18:08:17 +02:00
Maxime Richez f082344b66 Update origin of inventory moves for customer shipment
When synchronize inventory to outgoing moves, the origin of the inventory is
updated to point to the new corresponding outgoing move instead of the
original one.

Closes #12272
2023-08-25 16:34:06 +02:00
Cédric Krier b32eeae46a Store synchronized moves of customer shipment even when quantity is not updated
ed41959390ff added a synchronization on assign to prevent infinite warning
loop on pack if it creates new move without origin.
But 38e2a76db719 refactoring lost this behavior.

Closes #12503
2023-08-18 14:47:39 +02:00
Cédric Krier c1d4a667bd Do not try to assign shipments that do not need to be assigned
Closes #12311
2023-06-07 16:53:24 +02:00
Cédric Krier abf3167bcb Allow to use storage location as input or output location
When the input or output location is the same as the storage location, it can
be of type view.
2023-06-05 18:55:41 +02:00
Cédric Krier b2abd35dca Allow to store view location as warehouse storage on shipments
It is allowed to have a view location as storage for a warehouse so the
shipment should support it.

Closes #12307
2023-06-05 18:20:44 +02:00
Adrià Tarroja Caubet 960c220329 Remove migrations previous to 5.0
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier 6be816d947 Set order for stock moves on shipments
On shipment a good default order is by target location and product, but we add
the id to have deterministic result and remove the target location if by
design it is always the same.
On report with sequence on location, the order is fixed by the sequence of the
location.

Closes #7819
2023-02-22 16:58:23 +01:00
Cédric Krier ba701d5a38 Remove invalid fields from default copy 2023-03-15 16:11:51 +01:00
Sergio Hervas 472b4b0aa7 Display and order by planned date when searching incoming moves from supplier shipment
Closes #12060
2023-02-13 14:30:29 +01:00
Cédric Krier 69a1be6404 Assign all possible shipments and productions when trying
If assign_try fails to assign all the moves, we check if all the moves of each
shipment and production are assigned and then assign them.
Also we remove the boolean return which makes no more sense.

Closes #7006
2023-01-14 15:41:26 +01:00
Cédric Krier 0da84b21a3 Allow children location as source of outgoing moves for customer shipment
When the output location is the same as the storage location, we should allow
to record that products have been picked in a children location.

Closes #11973
2022-12-29 19:07:56 +01:00
Cédric Krier 66349b4121 Store warehouse locations on shipments
This ensures that the domain based on warehouse location stays valid even if
the warehouse configuration is changed after the creation of the shipment.

Closes #11974
2022-12-30 01:36:00 +01:00
Cédric Krier e121edc9ec Ignore explicitly stock moves for assignation
Closes #11945
2022-12-18 15:40:10 +01:00
Cédric Krier 4de9b6480e Prepare migration to monorepo 2022-12-16 15:33:21 +01:00