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??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Display values of dropdown in a many2one field
Diselesaikan
|
|
2
Feb 25
|
5792 | |
Set default value in object of many2one field
Diselesaikan
|
|
1
Nov 22
|
15917 | |
How to remove Create and Edit in many2one field.?
Diselesaikan
|
|
3
Agu 22
|
12887 | |
|
2
Agu 22
|
4412 | ||
|
0
Jul 22
|
836 |