Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5642 Представления

Our inventory consists of single items which are sold in volumes of 1. Each item is identified by unique serial number; therefore we are using stock.production.lot, one lot per item.

I am running into difficulties updating the stock.quants in each item's stock.location. I thought that the stock.quant would get updated in the appropriate place after the stock.move was set to 'done', but that is not happening.

I attempted to update the stock.quant model manually, but I'm starting to believe that that is is a big no-no. How can I get the stock.quants to update correctly in each stock.location?

I'm importing our initial inventory in the following manner:
1. Create stock.production.lot.
2. Create stock.move with location_dest_id.
3. Create stock.move.line, with location_dest_id, tying together the stock.move and the stock.production.lot.
4. Set the stock.move state to "done".

Unfortunately, when I view the destination stock.location, I do not see any stock.quants there.

What am I missing? Why isn't the stock.quant model attached to the stock.location getting updated?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
дек. 24
8955
2
мар. 25
3603
2
мар. 25
1459
0
окт. 21
1691
0
мая 21
3405