mrp.workorder: fields, relations and API
The mrp.workorder model ("Work Order") is a persistent model declared by the Manufacturing module, then extended by 2 other modules. It exposes 59 fields, 53 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
mrp.workorder- Label
- Work Order
- Type
- Persistent (models.Model)
- SQL table
mrp_workorder- Origin module
- Manufacturing (
mrp) - Extended by
- mrp_account, project_mrp_account
- Default order (_order)
sequence, leave_id, date_start, id
Model fields
53 own fields, 0 inherited from mixins and 6 automatic ORM fields. Click a name to get a direct link to that field.
59 of 59 fields shown
| Technical name | Label | Type | Details |
|---|---|---|---|
| allow_workorder_dependencies | Allow Workorder Dependencies | boolean | related: |
| barcode | Barcode | char | computed, stored |
| blocked_by_workorder_ids | Blocked By | many2many | |
| company_id | Company | many2one | related: |
| consumption | Consumption | selection | related: |
| cost_mode | Cost Mode | selection | Values: |
| costs_hour | Cost per hour | float | |
| date_finished | End | datetime | computed, stored |
| date_start | Start | datetime | computed, stored |
| duration | Real Duration | float | computed, stored |
| duration_expected | Expected Duration | float | computed, stored |
| duration_percent | Duration Deviation (%) | integer | read-onlycomputed, stored |
| duration_unit | Duration Per Unit | float | read-onlycomputed, stored |
| finished_lot_ids | Lot/Serial Numbers | many2many | related: |
| is_planned | Is Planned | boolean | related: |
| is_produced | Has Been Produced | boolean | computed |
| is_user_working | Is the Current User Working | boolean | computed |
| json_popover | Popover Data JSON | char | computed |
| last_working_user_id | Last user that worked on this work order. | many2one | computed |
| leave_id | Leave Slot into workcenter calendar once planned | many2one | |
| mo_analytic_account_line_ids | Mo Analytic Account Line | many2many | added by Accounting - MRP ( |
| move_finished_ids | Finished Moves | one2many | inverse: |
| move_line_ids | Moves to Track Inventory moves for which you must scan a lot number at this work order | one2many | inverse: |
| move_raw_ids | Raw Moves | one2many | inverse: |
| name | Work Order | char | required |
| needed_by_workorder_ids | Blocks | many2many | |
| operation_id | Operation | many2one | |
| product_id | Product | many2one | related: |
| product_tracking | Product Tracking | selection | related: |
| product_uom_id | Product Uom | many2one→ uom.uom | related: |
| product_variant_attributes | Product Variant Attributes | many2many | related: |
| production_availability | Stock Availability | selection | read-only related: |
| production_bom_id | Production Bom | many2one→ mrp.bom | related: |
| production_date | Production Date | datetime | computed, stored |
| production_id | Manufacturing Order | many2one | requiredread-only |
| production_state | Production State | selection | read-only related: |
| progress | Progress Done (%) | float | computed |
| qty_produced | Quantity Done The number of products already handled by this work order | float | |
| qty_producing | Currently Produced Quantity | float | computed |
| qty_production | Original Production Quantity | float | read-only related: |
| qty_ready | Quantity Ready | float | computed |
| qty_remaining | Quantity To Be Produced | float | computed |
| qty_reported_from_previous_wo | Carried Quantity The quantity already produced awaiting allocation in the backorders chain. | float | |
| scrap_count | Scrap Move | integer | computed |
| scrap_ids | Scrap | one2many | inverse: |
| sequence | Sequence | integer | |
| show_json_popover | Show Popover? | boolean | computed |
| state | Status | selection | computed, stored Values: |
| time_ids | Time | one2many | inverse: |
| wc_analytic_account_line_ids | Wc Analytic Account Line | many2many | added by Accounting - MRP ( |
| workcenter_id | Work Center | many2one | required |
| working_state | Workcenter Status | selection | related: |
| working_user_ids | Working user on this work order. | one2many | computed |
| 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
- account.analytic.line: mo_analytic_account_line_ids, wc_analytic_account_line_ids
- mrp.bom: production_bom_id
- mrp.production: production_id
- mrp.routing.workcenter: operation_id
- mrp.workcenter: workcenter_id
- mrp.workcenter.productivity: time_ids
- mrp.workorder: blocked_by_workorder_ids, needed_by_workorder_ids
- product.product: product_id
- product.template.attribute.value: product_variant_attributes
- res.company: company_id
- res.users: last_working_user_id, working_user_ids
- resource.calendar.leaves: leave_id
- stock.lot: finished_lot_ids
- stock.move: move_finished_ids, move_raw_ids
- stock.move.line: move_line_ids
- stock.scrap: scrap_ids
- uom.uom: product_uom_id
Fields of other models pointing here
- expiry.picking.confirmation: workorder_id
- mrp.production.serials: workorder_id
- mrp.workcenter.productivity: workorder_id
- mrp.workorder: blocked_by_workorder_ids, needed_by_workorder_ids
- stock.move: workorder_id
- stock.move.line: workorder_id
- stock.scrap: workorder_id
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/mrp.workorder/search_read" \
-H "Authorization: bearer $ODOO_API_KEY" \
-H "X-Odoo-Database: your-db" \
-H "Content-Type: application/json" \
-d '{"domain":[],"fields":["name","production_id","workcenter_id","state","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}/mrp.workorder/search_read",
headers=headers,
json={"domain": [], "fields": ["name","production_id","workcenter_id","state","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/mrp-workorder">mrp.workorder (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.