如何获得批号的可用数量 [英] how to get available quantity of Lot number

查看:90
本文介绍了如何获得批号的可用数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在多个仓库中获取可用批号数量

how to get available quantity of Lot number in multiple warehouse

假设我有3个仓库A,B和C, 批号LOT0001

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

我想要所有三个位置的LOT0001当前可用标签总数.

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

推荐答案

在odoo中,您可以在上下文中传递过滤器.

In odoo you can pass filters in context.

例如:

context = {'lot_id':'','owner_id':'','package_id':'','仓库':'','force_company':'','位置':'' }

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

product.with_context(context).qty_available

在odoo基本模块系统中,系统将根据上下文自动计算数量.

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.

这篇关于如何获得批号的可用数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆