Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3738 Näkymät

I'm using with context like :

q = product.with_context({'location':location_id}).qty_available.


It updated the destination location BUT I want also the source location to be updated so if i want MAIN to adjustment, it will return the qty_available based on that location,


In the code above, it return the qty_available with destination of location_id which is the adjustment but the source is from all the location not just the main (other location: branch1,branch2,etc....),


How can I use the context further?So that it will return only the qty_available based on the location (Main(Source)->Adjustment(Dest))

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
syysk. 20
3986
2
marrask. 23
8074
1
maalisk. 15
7856
0
maalisk. 15
4474
0
marrask. 23
2003