This question has been flagged
2 Replies
7669 Views

hi,

which the difference between product_uos_qty and product_qty columns in stock_move table?

and what does it mean 'priority' column in the same table?

thx in advance.

Avatar
Discard
Best Answer

product_uos_qty is the quantity of product in the stock move in Unit of Sale.

product_qty is the qunatity of product in the stock move in product default UoM.

 

product_uos_qty is used to display on the invoice the same quantity than the quantity sold in the sale order in case of invoicing on delivery.

product_qty is used to compute the stock level of a product. The stock level is always computed in default product UoM.

Avatar
Discard
Best Answer

Hi.

the field defs in stock.py

 

'product_uom': fields.many2one('product.uom', 'Unit of Measure', required=True,states={'done': [('readonly', True)]}), >> unit of measure value id of product_uom table

'product_uos_qty': fields.float('Quantity (UOS)', digits_compute=dp.get_precision('Product UoM'), states={'done': [('readonly', True)]}), >> product movement amount in UOS

'product_uos': fields.many2one('product.uom', 'Product UOS', states={'done': [('readonly', True)]}),

>> unit of sale value id from product_uom table

'priority': fields.selection([('0', 'Not urgent'), ('1', 'Urgent')], 'Priority'), >> may use by scheduler

 

 

Avatar
Discard