Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5379 Weergaven

Hi All,

From which table i can find current quantity of product ?

Like If some SO confirmed creates some DO automatically====>Stock decreassing

Same like PO confirmed creates some IN automatically ..=====>Stock increassing

So from where I will get current quantity of product 

is it from stock.quant? or some other way ?


 need to iterate on stokc.quant table to find qty ?


Avatar
Annuleer
Beste antwoord

Hello,

The better way will be use On Hand Qty:

Quantity on hand = qty_available (technical name)
Model: product.product


This field is inherited in stock module in product.py. 
NOTE: As this is compute field, an instance of it will not available in the database table, you will be able to directly get it in through your model query.

Avatar
Annuleer
Auteur

okay..let me check..