Post consumption and production on a manufacturing order
dolibarr_mo_produceRecord materials consumed and products produced on a manufacturing order, move stock between warehouses, and optionally close the MO after confirmation.
Instructions
Records what was used and made on a validated or in-progress MO: each row names a toconsume or toproduce line of the MO, the quantity and the warehouse. Material leaves stock and finished product enters stock. Lot-tracked products cannot be posted through the standard API. With close_when_done the MO becomes Produced. This step cannot simply be undone: without confirm=true it only returns a preview.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mo_id": "<mo_id>"
},
"name": "dolibarr_mo_produce"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mo_id | Yes | ||
| reason | No | One line on why, kept in the audit log. Required when confirm is true. | |
| confirm | No | false (default) = change nothing, only show what would happen. true = do it. Set true only after the user has explicitly agreed to this exact step. | |
| consume | No | ||
| produce | No | ||
| movement_label | No | ||
| close_when_done | No |