如何仅从odoo13中的pos源位置加载产品

如何仅从odoo13中的pos源位置加载产品,odoo,pos,Odoo,Pos,我只想加载存在pos库存位置的产品。我尝试使用以下代码。但显示所有产品。我如何操作?我尝试此模块,该模块显示所有产品。我只想加载存在pos库存位置的产品及其数量 类PosConfig(models.Model): _继承=“pos.config” show_qtys=fields.Boolean( “显示产品数量”,help=“在POS中显示产品数量”,默认值为True ) 默认位置src id=fields.manyOne( “stock.location”,related=“领料类型\u

我只想加载存在pos库存位置的产品。我尝试使用以下代码。但显示所有产品。我如何操作?我尝试此模块,该模块显示所有产品。我只想加载存在pos库存位置的产品及其数量

类PosConfig(models.Model):
_继承=“pos.config”
show_qtys=fields.Boolean(
“显示产品数量”,help=“在POS中显示产品数量”,默认值为True
)
默认位置src id=fields.manyOne(
“stock.location”,related=“领料类型\u id.默认位置\u src\u id”

)
你好。我也需要同样的。你设法解决了吗?谢谢