how to get available quantity of Lot number

筅森魡賤 提交于 2019-12-06 09:29:16

问题


how to get available quantity of Lot number in multiple warehouse

suppose i have 3 warehouse A,B and C, Lot number LOT0001

i want sum of total currently availabel quantity of LOT0001 in all three location.


回答1:


In odoo you can pass filters in context.

ex:

context={'lot_id':'','owner_id':'','package_id':'','warehouse':'','force_company':'','location':''}

product.with_context(context).qty_available

In odoo base module system will automatically calculate quantity based on context.

If you not pass context then system will give you sum of all warehouse stock.

this may help you.



来源:https://stackoverflow.com/questions/43422644/how-to-get-available-quantity-of-lot-number

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!