Odoo 19.0 Community · Persistent

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 nameLabelTypeDetails
allow_workorder_dependenciesAllow Workorder Dependenciesboolean

related: production_id.allow_workorder_dependencies

barcodeBarcodechar
computed, stored
blocked_by_workorder_idsBlocked Bymany2many
company_idCompanymany2one

related: production_id.company_id

consumptionConsumptionselection

related: production_id.consumption

cost_modeCost Modeselection

Values: actual (Actual), estimated (Estimated)

costs_hourCost per hourfloat
date_finishedEnddatetime
computed, stored
date_startStartdatetime
computed, stored
durationReal Durationfloat
computed, stored
duration_expectedExpected Durationfloat
computed, stored
duration_percentDuration Deviation (%)integer
read-onlycomputed, stored
duration_unitDuration Per Unitfloat
read-onlycomputed, stored
finished_lot_idsLot/Serial Numbersmany2many

related: production_id.lot_producing_ids

is_plannedIs Plannedboolean

related: production_id.is_planned

is_producedHas Been Producedboolean
computed
is_user_workingIs the Current User Workingboolean
computed
json_popoverPopover Data JSONchar
computed
last_working_user_idLast user that worked on this work order.many2one
computed
leave_idLeave

Slot into workcenter calendar once planned

many2one
mo_analytic_account_line_idsMo Analytic Account Linemany2many

added by Accounting - MRP (mrp_account)

move_finished_idsFinished Movesone2many

inverse: workorder_id

move_line_idsMoves to Track

Inventory moves for which you must scan a lot number at this work order

one2many

inverse: workorder_id

move_raw_idsRaw Movesone2many

inverse: workorder_id

nameWork Orderchar
required
needed_by_workorder_idsBlocksmany2many
operation_idOperationmany2one
product_idProductmany2one

related: production_id.product_id

product_trackingProduct Trackingselection

related: product_id.tracking

product_uom_idProduct Uommany2one

related: production_id.product_uom_id

product_variant_attributesProduct Variant Attributesmany2many

related: product_id.product_template_attribute_value_ids

production_availabilityStock Availabilityselection
read-only

related: production_id.reservation_state

production_bom_idProduction Bommany2one

related: production_id.bom_id

production_dateProduction Datedatetime
computed, stored
production_idManufacturing Ordermany2one
requiredread-only
production_stateProduction Stateselection
read-only

related: production_id.state

progressProgress Done (%)float
computed
qty_producedQuantity Done

The number of products already handled by this work order

float
qty_producingCurrently Produced Quantityfloat
computed
qty_productionOriginal Production Quantityfloat
read-only

related: production_id.product_qty

qty_readyQuantity Readyfloat
computed
qty_remainingQuantity To Be Producedfloat
computed
qty_reported_from_previous_woCarried Quantity

The quantity already produced awaiting allocation in the backorders chain.

float
scrap_countScrap Moveinteger
computed
scrap_idsScrapone2many

inverse: workorder_id

sequenceSequenceinteger
show_json_popoverShow Popover?boolean
computed
stateStatusselection
computed, stored

Values: blocked (Blocked), ready (To Do), progress (In Progress), done (Finished), cancel (Cancelled)

time_idsTimeone2many

inverse: workorder_id

wc_analytic_account_line_idsWc Analytic Account Linemany2many

added by Accounting - MRP (mrp_account)

workcenter_idWork Centermany2one
required
working_stateWorkcenter Statusselection

related: workcenter_id.working_state

working_user_idsWorking user on this work order.one2many
computed
create_dateCreated ondatetime
read-onlyautomatic
create_uidCreated bymany2one
read-onlyautomatic
display_nameDisplay Namechar
read-onlycomputedautomatic
idIDinteger
read-onlyautomatic
write_dateLast Updated ondatetime
read-onlyautomatic
write_uidLast Updated bymany2one
read-onlyautomatic

Relations

Models linked from this model

Fields of other models pointing here

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
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}'
Python (requests)
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.