Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
1452 Переглядів

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!

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лют. 25
5902
1
лист. 22
15974
3
серп. 22
13004
2
серп. 22
4483
0
лип. 22
836