Мэдлэгийн сан мэйлийн жагсаалтын архивууд
Архивыг үзэх
if lot_id: domain_quant.append [...]
аар
Отгонбаяр.В, Ажилтан
if lot_id:
domain_quant.append(('lot_id', '=', lot_id))
if product_id:
domain_quant.append(('product_id', '=', product_id))
if location_id:
domain_quant.append(('location_id', '=', location_id))
quants_groupby = self.env['stock.quant'].read_group(domain_quant, ['product_id', 'qty'], ['product_id'])
for quant in quants_groupby:
if quant.has_key('qty'):
res_qty = quant['qty']