Good evening everybody,
Using ODOO V11 CE:
i'm having the following error: https://pastebin.com/5BtLRiQk in a server action with the following code:
for rec in records:
while rec.x_pos_order.lines.product_id(self):
self.write({'sale.order_line.product_id': rec.x_pos_order.lines.product_id.id})
Background:
wich the "x_pos_order" field links the values from a Point of Sale order to a sale order . I'm trying to get products from a line to anoter, BUT, without success, can a good soul point me the right direction?
Hi Augusto,
The field "lines" contains multiple lines, not just one. You're trying to write on a record while it is a recordset. First loop over the lines and then do your write.
Next time please use a meaningful title.