0.00.0100005050NY50000YN1000100-2025/03/25 08:41:16.016-2025/03/25 08:41:16.016Nerp indoteknik productionlocalhostPOSTGRESQLNativeerp_indoteknik5901odooEncrypted 2be98afc82bdfd8dd9a2ca45acc83f6c3FORCE_IDENTIFIERS_TO_LOWERCASENFORCE_IDENTIFIERS_TO_UPPERCASENIS_CLUSTEREDNPORT_NUMBER5901PRESERVE_RESERVED_WORD_CASEYQUOTE_ALL_FIELDSNSUPPORTS_BOOLEAN_DATA_TYPEYSUPPORTS_TIMESTAMP_DATA_TYPEYUSE_POOLINGNFilter rowsSelect valuesYFilter rowslog same reserved with stock quantYMerge joinFilter rowsYSelect valuesUpdate wrong qty reservedYstock moveMerge joinYstock quantMerge joinYFilter rowsFilterRowsY1noneSelect valueslog same reserved with stock quantNreserved_quantity<>qty_reserved_must432208YMerge joinMergeJoinY1noneINNERstock quantstock moveproduct_idproduct_id304208YSelect valuesSelectValuesY1noneid_stock_quantproduct_idreserved_quantityproduct_id_1qty_reserved_mustN576208YUpdate wrong qty reservedUpdateY1noneerp indoteknik productionN100NNpublic
stock_quant
id_stock_quantid=reserved_quantityqty_reserved_must768208Ylog same reserved with stock quantWriteToLogY1nonelog_level_basicYN0432336Ystock moveTableInputY1noneerp indoteknik productionselect sm.product_id, sum(sml.product_uom_qty) as qty_reserved_must
from stock_move sm
join stock_move_line sml on sml.move_id = sm.id
where 1=1
and sm.state in ('assigned', 'partially_available')
and sm.location_id = 58
and sm.product_id in(
select sq.product_id
from stock_quant sq
where 1=1
and sq.location_id = 58
and sq.reserved_quantity > 0
)
group by sm.product_id
order by sm.product_id0NNNNIntegernormalproduct_id90stock moveproduct_id####0;-####0.,noneNY0NNNen_USAsia/BangkokNBigNumbernormalqty_reserved_must-1-1stock moveqty_reserved_must######0.0###################;-######0.0###################.noneNY0NNNen_USAsia/BangkokN30480Ystock quantTableInputY1noneerp indoteknik productionselect sq.id as id_stock_quant, sq.product_id, sq.reserved_quantity
from stock_quant sq
where 1=1
and sq.location_id = 58
and sq.reserved_quantity > 0
order by sq.product_id0NNNNIntegernormalid_stock_quant90stock quantid_stock_quant####0;-####0.,noneNY0NNNen_USAsia/BangkokNIntegernormalproduct_id90stock quantproduct_id####0;-####0.,noneNY0NNNen_USAsia/BangkokNNumbernormalreserved_quantity-1-1stock quantreserved_quantity####0.0#########;-####0.0#########.,noneNY0NNNen_USAsia/BangkokN144208YN