Thank very much before hand.
Im using Odoo 17
Im triying to add a product to sale order with python code from automated action, but ever a get an error from Odoo 17.
This is my code :
inv_lines = []
tmp = {
"product_template_id": 'test',
"name": 'test',
"product_uom_qty": 1,
'price_unit': 3,
}
inv_lines.append((0, 0, tmp))
self.env['sale.order'].create(inv_lines)