Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V16 stock_reserve_rule not properly applying the quants domain #2230

Open
FreezeS opened this issue Jan 9, 2025 · 0 comments
Open

V16 stock_reserve_rule not properly applying the quants domain #2230

FreezeS opened this issue Jan 9, 2025 · 0 comments
Labels

Comments

@FreezeS
Copy link

FreezeS commented Jan 9, 2025

Hi guys,

I've been trying to add some rules so that only unlocked lots are reserved during transfers but it actually reserved locked lots. I've been using the module stock_lock_lot which adds the "locked" field on lots.

To reproduce this in runboat I used the internal_reference field:

  • enable lots
  • make a regular product (Test1) with 2 lots (LOT1, LOT2)
  • LOT1 internal_reference = BBB, LOT2 internal_reference = AAA
  • add 10 pcs stock for both lots in WH/Stock

image

  • create a reservation rule for WH/Stock, filter Rule Domain by product (Test1)

image

  • add a removal rule with Lot/Serial Number - Internal Reference = "AAA"
    image

  • check that it applies only to LOT2 only:
    image

  • make an internal transfer from WH/Stock to WH/Stock with 20 pcs Test1:

image

  • Check availability

What I expected to happen:

  • 10 pcs to be reserved from LOT2

What actually happened:

  • 10 pcs were reserved from LOT1
    image
    image
@FreezeS FreezeS added the bug label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant