Hello, I am trying to change the execution of the stock_picking validation on odoo 11, in order to create stock move line with specific lots.
I'm trying to reproduce the "Check Availabity" (method action_assign from 'stock_picking') to force in every stock_move the creation of stock_move_line using specific lots getted by context.
This is usefull when the products don't follow and FIFO strategy, same to create stock_move in stock picking from barcode reader automatically.
I have a lot of code but when I'm reserving the quants I'm still getting errors.
Someone have this problem? I will like to share ideas.
Thank you in advise
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
3292
Views
Hello,
I encounter the same problem, I try to modify the method so that the availability check is done on a list of lots selected in a wizard.
have you found a solution to your problem?
if yes, I would be interested in your advice
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
I found the solution, I don't know if it's the best way to do it, but in any case it works well according to the tests I've been able to do.
You have to change the methods: _gather and _update_reserved_quantity on the model stock.quant