I have done r&d and found the term bundle is not used in odoo as the product in odoo can be managed using combo item. But when i am trying to create combo item using JSONRPC Api the combo item is created individual instead of grouping in parent item. Can any one provide me the sample api response to create combo items as like magento do in it's bundle product.
API REQUEST :
{
"jsonrpc": "2.0",
"method": "call",
"params": {
"service": "object",
"method": "execute_kw",
"args": [
"{dbname}",
"{id_odoo}",
"{tokenAccess}",
"sale.order",
"create",
[
{
"partner_id": 6,
"pricelist_id": 2,
"order_line": [
[0, 0, {
"product_uom_qty": 1,
"price_unit": 628.00,
"product_id": 2, // simple product id
"tax_ids": [[6, false, [275]]]
}],
[0, 0, {
"product_uom_qty": 3,
"product_id": 9, // odoo Parent Product A ID
"price_unit": 100,
"tax_ids": [[6, false, [275]]]
}],
[0, 0, {
"product_uom_qty": 3,
"product_id": 8,
"price_unit": 0.50,
"tax_ids": [[6, false, [275]]]
}],
// Shipping line
[0, 0, {
"product_uom_qty": 1,
"product_id": 4,
"price_unit": 4.00,
"is_delivery": true,
"tax_ids": [[6, false, [275]]]
}]
],
"partner_shipping_id": 7,
"partner_invoice_id": 7
}
]
]
}
}
I want to prepare request for bundle items.
Not exact bundle i need to sync here but as combo i can manage my items the things i need how to pass from api the order create request which should be created like this UI in odoo. This issue only i need to solve rest of all things is syncing fine.
Click to see the required output after order created using Api,
"https://prnt.sc/4JaTyyQVdCPG"