Dears,
odoo version 16.
I need create a monthly invoice using API and the same product have diferent taxes on diferent lines . Example:
product 1 = tax_ids 1
product 1 = tax_ids 2
My Postman API POST:
{{url}}/api/sale.order/create
My Code body:
{
"partner_id": 10,
"user_id":6,
"order_line":[
[0,0,{"product_id":6, "product_uom_qty":1,"price_unit": 5,"tax_ids":1}],
[0,0,{"product_id":6, "product_uom_qty":1,"price_unit": 5,"tax_ids":3}]
]
}
My Error message:
200 OK
"success":false,
Error message: "message":"ERROR: ValueError(\"Invalid field 'tax_ids' on model 'sale.order.line'\") {}",
looks the error is the field tax_ids, but I try so many different names like:
- order_line_tax_ids
- taxes_ids
- tax_id
- tax
- ...
Please can you clarify the rigth name for tax_ids?
Thanks!