Skip to Content
Menu
This question has been flagged
1 Reply
3292 Views

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 

Avatar
Discard

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

Best Answer

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

Avatar
Discard