Page cover

Manufacturing Order

Create Manufacturing Order

Before creating a Bill of Materials (BoM), you need both the product_tmpl_id and the bom_id of the item you want to produce.

  • You can fetch the product here, and the BoM here.

  • Alternatively, you can retrieve the bom_ids for a given product through the product.product field bom_ids.

Both approaches achieve the same result. The method you choose depends on your UI interaction — in some cases, one may be more convenient than the other.

💡 Example:

Imagine you are on the list view showing all products with BoMs available for production. When a user clicks on any item in the list, the system displays a detailed view of the BoMs available for that product, allowing the user to select which BoM to use.

In this scenario, using the product.product → bom_ids field is more efficient than fetching BoMs separately, since it directly provides all related BoMs for that specific product.

{
  "id": "839dj3ud9829302jd",
  "action": "create",
  "model_id": "mrp.production",
  "keyword": {
    "context": {
      "allowed_company_ids": [
        1
      ],
      "default_company_id": 1,
      "tz": "Asia/Singapore"
    }
  },
  "params": [
    [
      {
        "product_id": 14,
        "bom_id": 3,
        "product_qty": 5,
        "date_finished": "2025-09-15 21:00:00"
      }
    ]
  ],
  "odoo_instance": {
    "url": "YOUR_ODOO_INSTANCE_URL",
    "user_id": INT(YOUR_USER_ID),
    "db": "YOUR_ODOO_DB",
    "api_key": "YOUR_ODOO_API_KEY"
  }
}

Confirm Manufacturing Order

Update Qty

Get Manufacturing Stock Move IDs

Update Stock Move IDs

Mark as Done / Finish

Last updated