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

problem with creation of observation in a different transaction than the one where reservations has been claimed #42

Open
GohuHQ opened this issue Mar 6, 2019 · 0 comments

Comments

@GohuHQ
Copy link

GohuHQ commented Mar 6, 2019

My use case is the following:

  • Reservations have already been claimed and operations planned
  • In my case, i need to execute some observations at different moments of my scenario and observations are designed to be created as done that's why they are not included in the planned operations.

The error raised is the following:
Model.Wms.Operation.Observation: Cannot create for (id=6799, type=(id=19659, code=\'XXXX\')) because their PhysObj are reserved <Model.Wms.Reservation(physobj=<Model.Wms.PhysObj(id=6799)>, physobj_id=6799, quantity=1, request_item=<Model.Wms.Reservation.RequestItem(id=186)>, request_item_id=186)>, which does not not agree."

I think maybe we shouldn't check if the transaction is allowed when we create an Operation.Observation.

I hope that's understandable.

What do you think @gracinet ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant