跳至内容
菜单
此问题已终结
3514 查看

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))

形象
丢弃
相关帖文 回复 查看 活动
1
9月 20
3613
2
11月 23
7709
1
3月 15
7423
0
3月 15
4124
0
11月 23
1667