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

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
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
feb. 25
5858
1
nov. 22
15925
3
avg. 22
12921
2
avg. 22
4428
0
jul. 22
836