Odoo Help

0

vals for relationship fields (one2many)

By
N
on 5/16/13, 8:14 AM 1,596 views

i have seen in the doc, for a one2many field :

(0, 0, { values }) link to a new record that needs to be created with the given values dictionary

My question is how to link to a new record that NOT needs to be created with the given values dictionary. Indeed i have a sale order line which is already created, and i want to link this order line to a new object.

Use (4, SALE_ORDER_LINE_IDS)

saad
on 5/16/13, 8:23 AM

Use [(6, 0, sale_order_line_ids)]

Serpent Consulting Services Pvt. Ltd.
on 5/16/13, 8:31 AM
0
Sudhir Arya (SA)
On 5/16/13, 8:43 AM

You can find more about it at For a one2many field.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 5/16/13, 8:14 AM
Seen: 1596 times
Last updated: 3/16/15, 8:10 AM