stock.move.line: fields, relations and API
The stock.move.line model ("Product Moves (Stock Move Line)") is a persistent model declared by the Inventory module, then extended by 9 other modules. It exposes 60 fields, 54 of them declared directly on the model; 6 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.move.line- Label
- Product Moves (Stock Move Line)
- Type
- Persistent (models.Model)
- SQL table
stock_move_line- Origin module
- Inventory (
stock) - Extended by
- stock_account, sale_stock, stock_delivery, stock_picking_batch, mrp, product_expiry, repair, mrp_subcontracting, sale_mrp
- Default order (_order)
result_package_id desc, id- Display field (_rec_name)
product_id
Model fields
54 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.
60 of 60 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| allowed_uom_ids | Allowed Uom | many2many→ uom.uom | computed |
| batch_id | Batch | many2one | related: added by Warehouse Management: Batch Transfer ( |
| carrier_id | Carrier | many2one | related: added by Delivery - Stock ( |
| company_id | Company | many2one | requiredread-only |
| consume_line_ids | Consume Line | many2many | |
| date | Date Creation date of this move line until updated due to: quantity being increased, 'picked' status has updated, or move line is done. | datetime | required |
| description_picking | Description Picking | text | related: |
| destination_country_code | Destination Country Code | char | related: added by Delivery - Stock ( |
| expiration_date | Expiration Date This is the date on which the goods with this Serial Number may become dangerous and must not be consumed. | datetime | computed, stored added by Products Expiration Date ( |
| is_entire_pack | Is added through entire package | boolean | |
| is_expired | Is Expired | boolean | related: added by Products Expiration Date ( |
| is_inventory | Is Inventory | boolean | related: |
| is_locked | Is Locked | boolean | read-only related: |
| location_dest_id | To | many2one | requiredcomputed, stored |
| location_dest_usage | Destination Location Type | selection | related: |
| location_id | From | many2one | requiredcomputed, stored |
| location_usage | Source Location Type | selection | related: |
| lot_id | Lot/Serial Number | many2one | |
| lot_name | Lot/Serial Number Name | char | |
| lots_visible | Lots Visible | boolean | computed |
| move_id | Stock Operation | many2one | |
| move_partner_id | Move Partner | many2one | read-only related: |
| origin | Source | char | related: |
| owner_id | From Owner When validating the transfer, the products will be taken from this owner. | many2one | |
| package_history_id | Package History | many2one | |
| package_id | Source Package | many2one | |
| picked | Picked | boolean | computed, stored |
| picking_code | Picking Code | selection | read-only related: |
| picking_id | Transfer The stock operation where the packing has been made | many2one | |
| picking_location_dest_id | Picking Location Dest | many2one | related: |
| picking_location_id | Picking Location | many2one | related: |
| picking_partner_id | Picking Partner | many2one | read-only related: |
| picking_type_id | Operation type | many2one | computed |
| picking_type_use_create_lots | Picking Type Use Create Lots | boolean | read-only related: |
| picking_type_use_existing_lots | Picking Type Use Existing Lots | boolean | read-only related: |
| produce_line_ids | Produce Line | many2many | |
| product_category_name | Product Category | char | related: |
| product_id | Product | many2one | |
| product_uom_id | Unit | many2one→ uom.uom | requiredcomputed, stored |
| production_id | Production Order | many2one | added by Manufacturing ( |
| quant_id | Pick From | many2one | |
| quantity | Quantity | float | computed, stored |
| quantity_product_uom | Quantity in Product UoM | float | computed, stored |
| reference | Reference | char | related: |
| removal_date | Removal Date | datetime | computed, stored added by Products Expiration Date ( |
| result_package_dest_name | Destination Package Name | char | related: |
| result_package_id | Destination Package If set, the operations are packed into this package | many2one | |
| sale_price | Sale Price | float | computed added by Delivery - Stock ( |
| scheduled_date | Scheduled Date | datetime | related: |
| scrap_id | Scrap | many2one | related: |
| state | State | selection | related: |
| tracking | Tracking | selection | read-only related: |
| use_expiration_date | Use Expiration Date | boolean | related: added by Products Expiration Date ( |
| workorder_id | Work Order | many2one | added by Manufacturing ( |
| 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
- delivery.carrier: carrier_id
- mrp.production: production_id
- mrp.workorder: workorder_id
- product.product: product_id
- res.company: company_id
- res.partner: move_partner_id, owner_id, picking_partner_id
- stock.location: location_dest_id, location_id, picking_location_dest_id, picking_location_id
- stock.lot: lot_id
- stock.move: move_id
- stock.move.line: consume_line_ids, produce_line_ids
- stock.package: package_id, result_package_id
- stock.package.history: package_history_id
- stock.picking: picking_id
- stock.picking.batch: batch_id
- stock.picking.type: picking_type_id
- stock.quant: quant_id
- stock.scrap: scrap_id
- uom.uom: allowed_uom_ids, product_uom_id
Fields of other models pointing here
- lot.label.layout: move_line_ids
- stock.add.to.wave: line_ids
- stock.move.line: consume_line_ids, produce_line_ids
- stock.package.destination: move_line_ids
- stock.put.in.pack: move_line_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.move.line/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["product_id","company_id","date","location_dest_id","location_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.move.line/search_read",
headers=headers,
json={"domain": [], "fields": ["product_id","company_id","date","location_dest_id","location_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-move-line">stock.move.line (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.