Skip to Content
Menu
This question has been flagged
2 Replies
1962 Views

Hello:

I am creating an account.move document in the account, and the account.move.line that belong to the account.move.

How do I connect the account.move to sale.order?  settings sale_line_ids value on the line results in the following error:

Wrong value for account.move.line.sale_line_ids


Full line structure:

{price_unit=100.0, sale_line_ids=35, quantity=2.0, account_id=19, partner_id=3, move_name=22222222, product_id=171, move_id=10}


Avatar
Discard
Author Best Answer

Thank you for your response.  I was able to create the invoice, and the line items seem to be properly linked to the sales order line items.

However, the sales order in UI does not show that it has been invoiced.  I tried updating the invoice_count field, but it didn't help.

What fields should I update on the sale.order and account.move to connect them, to invoice the order?

Avatar
Discard
Best Answer

Hello Luis, 

'sale_line_ids' is a many2many type field.

and you are using the wrong way to set many2many field

Kindly replace the below code,

{price_unit=100.0, sale_line_ids=[(6 ,0, [35])], quantity=2.0, account_id=19, partner_id=3, move_name=22222222, product_id=171, move_id=10}

Thanks

Anisha Bahukhandi

Technical Content Writer

Avatar
Discard