コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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

アバター
破棄
最善の回答
for element in first_one2many_field:
project_record.write({'second_one2many_field': [(3, element.id)]})
アバター
破棄
関連投稿 返信 ビュー 活動
2
10月 25
2370
2
1月 24
1919
1
12月 22
2971
0
7月 22
4232
0
2月 19
3528