Skip to content

[16.0][FW] stock_dynamic_routing: Backports from 18.0#1153

Open
jbaudoux wants to merge 24 commits intoOCA:16.0from
jbaudoux:oca-port-stock_dynamic_routing-18.0-to-16.0-4d3f1c
Open

[16.0][FW] stock_dynamic_routing: Backports from 18.0#1153
jbaudoux wants to merge 24 commits intoOCA:16.0from
jbaudoux:oca-port-stock_dynamic_routing-18.0-to-16.0-4d3f1c

Conversation

nicolas-delbovier-acsone and others added 24 commits April 9, 2026 15:46
…nent.

The "Lots" title was incorrectly placed inside the for loop, making it appear at every iteration
The "Need Release" counter on the Picking Type Kanban view was
inconsistent with standard Odoo counters. Additionally, the layout
broke when the count reached 1,000 or more, causing the number to
overflow the card boundaries.
Refactor the DatePicker component to use standard Vue event bubbling
instead of a global event hub and watchers.

- Replace the 'date' watcher with a manual $emit on the '@change'
  event to prevent redundant event triggers and improve performance.
- Remove the 'datepicker:newdate' event_hub listener as global
  broadcasting is unnecessary for this local UI component.
- Remove the 'handler_to_update_date' prop, shifting the responsibility
  of date processing to the parent component.
- Simplify the template and remove unused imports.
…g keyboard

- Use user locale for date input
- Use input masking to auto add the separators
- Prevent from entering invalid characters
- Show input error message in case of invalid input
- Reset input if date-picker is used instead
Changed the date-picker-input behavior to trigger the calendar popup
only when the prepend icon is clicked, rather than on text field focus.

This prevents the picker from obstructing the screen when users prefer
to type the date manually

Co-authored-by: Jacques-Etienne Baudoux <je.baudoux@gmail.com>
…input

Fixed a bug where invalid calendar dates (like Feb 29 in non-leap years)
were accepted and converted to the next valid date (March 01).
As the call to _check_entire_pack can be very slow, bypass it's call
when pre-computing the dynamic routing pull rules as this is not needed
for the computation and will be rollbacked.

Also in case of source relocation, ensure to call _check_entire_pack on
the recordset of moves and not on each move one by one. This is because
_check_entire_pack triggers the check on the picking of the move and so
you perform the same check for each move of the picking. When you
reserve from source packages you have many moves inside a picking, the
check is quite long and this change makes a important performance
improvement.

When the dynamic routing does not change the source location, do not
write the same value on the move as this triggers many useless
additional recomputations.
Fix [PERF] dynamic routing
When there is no dynamic routing rule, the package putaway was not computed
as we skip the result_package_id during the reservation.
Now the putaway is also deferred and applied after the package is set on the stock move line.
…y a sublocation of the routing rule src location
Ensure the putaway is computed considering the package if any is set
Do not log that the initial demand has been updated when the move is split.
The demand is still the same, it's just split in 2 moves.
When a confirmed move is split, do not call _action_confirm on the new move
Do not call _action_assign inside _action_assign but use super().
Add hook for relocate before updating next moves.
@OCA-git-bot OCA-git-bot added mod:stock_dynamic_routing Module stock_dynamic_routing series:16.0 labels Apr 13, 2026
@jbaudoux
Copy link
Copy Markdown
Contributor Author

stock_storage_type failing tests should be solved by:

shopfloor failing tests being tackled in v18.0 and will be backported

@jbaudoux
Copy link
Copy Markdown
Contributor Author

shopfloor test partially fixed by:

@jbaudoux jbaudoux marked this pull request as ready for review April 15, 2026 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:stock_dynamic_routing Module stock_dynamic_routing series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants