Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
848 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
helmik. 25
5078
1
marrask. 22
15500
3
elok. 22
12215
2
elok. 22
3964
0
heinäk. 22
836