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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
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,Thanks
Hi Muhamed,
Can you please upvote this answer if you have enough Karma/Points?
Thanks & Regards
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
1
lis 24
|
2624 | |||
|
1
sie 21
|
3053 | |||
|
Adding new state to existing invoice model
Rozwiązane
|
1
kwi 21
|
4614 | ||
|
0
kwi 21
|
3116 | |||
|
2
sie 25
|
4372 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.