İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1537 Görünümler

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??

Avatar
Vazgeç
En İyi Yanıt

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!

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Şub 25
6022
1
Kas 22
16094
3
Ağu 22
13188
2
Ağu 22
4596
0
Tem 22
836