product_qty doesn't add if created through stock.pick.line
I want to be able to add all products to stock by creating individual stock receipts and track them with individual serial numbers.
But if I add a product to stock.product.line and then create a stock.production.lot number for it- first I get an error 'You can only process 1.0 Unit(s) for products with unique serial number.'.
I added an onchange function to add a product_uom_qty, but when I check the created lots, it says that item quantity is 0
How would I properly update product_qty through stock.pick.line? In the code I see there is even an error waiting if I try to change the field:
I tried simply to:
But this doesn't work.
EDIT: I guess I need to somehow create a quant manually? Because it seem when any product is simply added through Receipts- doesn't have any moves/ quants associated with it, and thus Item doesn't really get added.. What's the point of being able to add items through stock.move.line manually, if that doesn't really create an item in inventory anyway?