Skip to content

[IMP] stock_location_product_restriction: Allow to put products in location if being emptied#2342

Closed
rousseldenis wants to merge 4 commits intoOCA:16.0from
acsone:16.0-imp-location-restricion-dro
Closed

[IMP] stock_location_product_restriction: Allow to put products in location if being emptied#2342
rousseldenis wants to merge 4 commits intoOCA:16.0from
acsone:16.0-imp-location-restricion-dro

Conversation

@rousseldenis
Copy link
Copy Markdown
Contributor

@rousseldenis rousseldenis commented May 15, 2025

Depends on :

In day-to-day stock operations, operators will take products from a location and often empty that location.

But, if the movement quantity is already changed ('qty_done'), the picking is not yet validated.

In parallel, some operators want to fill in the location with another product as it is already physically void.

NOTE: This is a major change as a dependency is added

  • Adds also an helper function to check if a product can enter a location

@OCA-git-bot
Copy link
Copy Markdown
Contributor

Hi @lmignon,
some modules you are maintaining are being modified, check this out!

Copy link
Copy Markdown
Contributor

@lmignon lmignon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (code review)

@rousseldenis rousseldenis force-pushed the 16.0-imp-location-restricion-dro branch from 59a196a to 0d1730c Compare June 2, 2025 09:07
…cation if being emptied

In day-to-day stock operations, operators will take products from a location and
often empty that location.

But, if the movement quantity is already changed ('qty_done'), the picking is not
yet validated.

In parallel, some operators want to fill in the location with another product as
it is already physically void.
@rousseldenis rousseldenis force-pushed the 16.0-imp-location-restricion-dro branch from 2139018 to f5bd0cc Compare July 14, 2025 08:59
…' default state

When a location has moves that void it and a move that fills it, the 'fill_state' is
now at 'being_filled'. Adapt the constraint check to that state before doing effectively
the move.
@rousseldenis rousseldenis force-pushed the 16.0-imp-location-restricion-dro branch from f5bd0cc to c3f0b83 Compare July 14, 2025 09:00
… location restriction

Add an helper function in order to check if a product can enter a location
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 4, 2026

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jan 4, 2026
@github-actions github-actions bot closed this Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement needs review stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants