Commit Graph

11 Commits

Author SHA1 Message Date
Yoshi Tashiro
c7dc47b9c2 [FIX] stock_quant_manual_assign: Correct handling of immediate transfers
This commit fixes the following issues:

- The previous code does not handle the immediate transfer scenario when
  auto_fill_qty_done is selected in the operation type. This raises a missing-record
  error, trying to update qty_done on non-existing move line records.
- move._do_unreserve() keeps existing stock.move.line records if there is some
  qty_done set, which is not a desirable outcome. All the linked move line records
  should be unlinked before selected quants are assigned.
2024-10-21 02:11:56 +00:00
Alexis de Lattre
c8911588f8 [MIG] stock_quant_manual_assign to v16 2023-05-16 13:24:52 +03:00
Jasmin Solanki
99598c0974 [MIG] stock_quant_manual_assign: Migration to 15.0 2022-10-29 20:36:25 +02:00
Yoshi Tashiro
ae5744c083 [IMP] stock_quant_manual_assign: make qty_done fill optional
There are cases where auto-filling of qty_done of stock move line is not desirable.
e.g. you assign quants manually for some of the moves in a picking and not the others,
in such case you need to go over all the moves in the picking to either remove qty_done
or fill it in to proceed with the validation of the entire moves. Auto-fill behavior is
also troublesome when this function is used in a manufacturing order. i.e. having
qty_done of the component move live messes up the outcome of the production.
2022-10-29 20:36:25 +02:00
Fanha Giang
e62d14706a [MIG] stock_quant_manual_assign: Migration to 14.0 2022-10-29 20:36:25 +02:00
Tony Gu
0d22dd8283 [MIG] stock_quant_manual_assign: Migration to 13.0 2022-10-29 20:36:25 +02:00
Tony Gu
383c8a41a2 [IMP] stock_quant_manual_assign: black, isort, prettier 2022-10-29 20:36:25 +02:00
Pedro M. Baeza
c559485d23 [IMP] stock_quant_manual_assign:
* Better layout
* Remove active_id dependency in some computed fields
* Clean code
* Refine constraint
* Take into account if the current line is previously reserved before clicking on the button.
2022-10-29 20:36:25 +02:00
cubells
45b7d5b48f [MIG] stock_quant_manual_assign: Migration to 11.0 2022-10-29 20:36:25 +02:00
Fanha Giang
22ede1fba9 11.0-mig-stock_quant_manual_assign 2022-10-29 20:36:25 +02:00
Fanha Giang
85e0c8c695 [MIG] stock_quant_manual_assign: Migration to 10.0 2022-10-29 20:36:25 +02:00