In odoo mode, you can pass filters in context.
Example:
context = {'lot_id': '', 'owner_id': '', 'package_id': '', 'warehouse': '', 'force_company': '', 'location': ''}
product.with_context (context) .qty_available
The odoo base module system automatically calculates a quantity based on context.
, .
.