in product line lot_id(Many2one) field, qty_available(related) field, i need to get the lot by location, how to get Lot by location can anyone help me how to do.
My Code
qty_lot_avl = ffelds.Float('QTY LOT', related="lot_id.product_qty")
lot_id = fields.Many2one(
'stock.production.lot', 'Lot/Serial Number',
domain="[('product_id', '=', product_id), ('company_id', '=', company_id)]", check_company=True)