stock.quant: fields, relations and API
The stock.quant model ("Quants") is a persistent model declared by the Inventory module, then extended by 4 other modules. It exposes 43 fields, 37 of them declared directly on the model; 8 fields from other models point to it. Below you will find every field with its technical name, type, label and relations, followed by an Odoo 19 JSON-2 API call.
Model identity
- Technical name
stock.quant- Label
- Quants
- Type
- Persistent (models.Model)
- SQL table
stock_quant- Origin module
- Inventory (
stock) - Extended by
- stock_account, mrp, product_expiry, mrp_subcontracting
- Display field (_rec_name)
product_id
Model fields
37 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.
43 of 43 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| accounting_date | Accounting Date Date at which the accounting entries will be created in case of automated inventory valuation. If empty, the inventory date will be used. | date | added by WMS Accounting ( |
| available_quantity | Available Quantity On hand quantity which hasn't been reserved on a transfer and is still fresh, in the default unit of measure of the product | float | computed |
| company_id | Company | many2one | read-only related: |
| cost_method | Cost Method | selection | computed Values: added by WMS Accounting ( |
| currency_id | Currency | many2one | related: added by WMS Accounting ( |
| cyclic_inventory_frequency | Cyclic Inventory Frequency | integer | related: |
| expiration_date | Expiration Date | datetime | related: added by Products Expiration Date ( |
| in_date | Incoming Date | datetime | requiredread-only |
| inventory_date | Scheduled Next date the On Hand Quantity should be counted. | date | computed, stored |
| inventory_diff_quantity | Difference Indicates the gap between the product's theoretical quantity and its counted quantity. | float | read-onlycomputed, stored |
| inventory_quantity | Counted The product's counted quantity. | float | |
| inventory_quantity_auto_apply | Inventoried Quantity | float | computed |
| inventory_quantity_set | Inventory Quantity Set | boolean | computed, stored |
| is_favorite | Is Favorite | boolean | related: |
| is_outdated | Quantity has been moved since last count | boolean | computed |
| is_subcontract | Is Subcontract | boolean | added by MRP Subcontracting ( |
| last_count_date | Last Count Date Last time the Quantity was Updated | date | computed |
| location_id | Location | many2one | required |
| lot_id | Lot/Serial Number | many2one | |
| lot_properties | Lot Properties | properties | read-only related: |
| on_hand | On Hand | boolean | |
| owner_id | Owner This is the owner of the quant | many2one | |
| package_id | Package The package containing this quant | many2one | |
| product_categ_id | Product Categ | many2one | related: |
| product_id | Product | many2one | required |
| product_tmpl_id | Product Template | many2one | related: |
| product_uom_id | Unit | many2one→ uom.uom | read-only related: |
| quantity | Quantity Quantity of products in this quant, in the default unit of measure of the product | float | read-only |
| removal_date | Removal Date | datetime | related: added by Products Expiration Date ( |
| reserved_quantity | Reserved Quantity Quantity of reserved products in this quant, in the default unit of measure of the product | float | requiredread-only |
| sn_duplicated | Duplicated Serial Number If the same SN is in another Quant | boolean | computed |
| storage_category_id | Storage Category | many2one | related: |
| tracking | Tracking | selection | read-only related: |
| use_expiration_date | Use Expiration Date | boolean | related: added by Products Expiration Date ( |
| user_id | Assigned To User assigned to do product count. | many2one | |
| value | Value | monetary | computed added by WMS Accounting ( |
| warehouse_id | Warehouse | many2one | related: |
| create_date | Created on | datetime | read-onlyautomatic |
| create_uid | Created by | many2one | read-onlyautomatic |
| display_name | Display Name | char | read-onlycomputedautomatic |
| id | ID | integer | read-onlyautomatic |
| write_date | Last Updated on | datetime | read-onlyautomatic |
| write_uid | Last Updated by | many2one | read-onlyautomatic |
Relations
Models linked from this model
- product.category: product_categ_id
- product.product: product_id
- product.template: product_tmpl_id
- res.company: company_id
- res.currency: currency_id
- res.partner: owner_id
- res.users: user_id
- stock.location: location_id
- stock.lot: lot_id
- stock.package: package_id
- stock.storage.category: storage_category_id
- stock.warehouse: warehouse_id
- uom.uom: product_uom_id
Fields of other models pointing here
- stock.inventory.adjustment.name: quant_ids
- stock.inventory.conflict: quant_ids, quant_to_fix_ids
- stock.inventory.warning: quant_ids
- stock.move.line: quant_id
- stock.quant.relocate: quant_ids
- stock.request.count: quant_ids
- stock.warn.insufficient.qty: quant_ids
Reading this model through the API
Odoo 19 JSON-2 API call reading the first five records with real fields of the model. Replace the instance, database and API key with your own.
curl -X POST "https://your-instance.odoo.com/json/2/stock.quant/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["product_id","in_date","location_id","reserved_quantity","company_id"],"limit":5}'import requests
BASE_URL = "https://your-instance.odoo.com/json/2"
headers = {"Authorization": f"bearer {API_KEY}", "X-Odoo-Database": "your-db"}
res = requests.post(
f"{BASE_URL}/stock.quant/search_read",
headers=headers,
json={"domain": [], "fields": ["product_id","in_date","location_id","reserved_quantity","company_id"], "limit": 5},
)
res.raise_for_status()
print(res.json())- External API access requires Odoo's Custom plan.
- XML-RPC and JSON-RPC will be removed in Odoo 22 (fall 2028): use JSON-2.
- The access rights and record rules of the key's user apply.
Cite this tool
Writing a tutorial, internal documentation or a forum answer? Copy this link to send your readers to the up-to-date reference.
<a href="https://aidoo.ai/en/outils/explorateur-modeles-odoo/stock-quant">stock.quant (Odoo 19.0)</a>Sources
Data verified on September 23, 2026 · Odoo 19.0 Community
Have an Odoo project, or want to put your ERP to work with AI? Let's talk
Implementation, custom module development, connecting Claude or ChatGPT to your data: tell us about your context and we will reply within 24 business hours.