Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged

Hello Dears,

I have custom one2many field in Sale Order and another field in project

I've created a button in sale order to create project when the order confirmed,

When click on create project the project created but I need also to fill the one2many in project from sale order one2many field

Avatar
Opusti
Best Answer
for element in first_one2many_field:
project_record.write({'second_one2many_field': [(3, element.id)]})
Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
okt. 25
2340
2
jan. 24
1890
1
dec. 22
2962
0
jul. 22
4218
0
feb. 19
3497