跳至內容
選單
此問題已被標幟
1 回覆
1410 瀏覽次數

hello 

i have form have many2one field that related to another model i creater.

when i enter new value to this field and choose created and edit then form of another model open the value of this field not passed ?????

why??

頭像
捨棄
最佳答案

Hello,

You can transmit a value from another field using context, as in the code below, adapting it to your needs:

<field name="another_partner_id"
context="{'default_street': street, 'default_street2': street2,
'default_city': city, 'default_zip': zip, 'default_country_id': country_id}"
options="{'no_quick_create': True}"/>

Best regards!

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
2月 25
5853
1
11月 22
15924
3
8月 22
12914
2
8月 22
4426
0
7月 22
836