Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
3598 Visualizações

I want to update the product quantity on hand from python code 
I have tried to use

self.env['stock.quant']._update_available_quantity(product_id, company.internal_transit_location_id, qty)
but quantity doesn't update
Avatar
Cancelar
Melhor resposta

Hi,

You can try with the below solution

self.env['stock.quant']._update_available_quantity(product_id, order_id.warehouse_id.lot_stock_id, 100)
Thanks & Regards,
Sunny Sheth


Avatar
Cancelar

Hi Muhamed,

Can you please upvote this answer if you have enough Karma/Points?

Thanks & Regards

Publicações relacionadas Respostas Visualizações Atividade
1
nov. 24
1792
1
ago. 21
2346
1
abr. 21
3788
0
abr. 21
2292
1
fev. 24
2940