Hi everyone,
I have defined a many2many field in my customized form.When i select many2many field value need to throw values to one2many field.Is it possible to do? Please advise in this situation.Thanks in advance
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi everyone,
I have defined a many2many field in my customized form.When i select many2many field value need to throw values to one2many field.Is it possible to do? Please advise in this situation.Thanks in advance
Yes, it is possible to manage this kind of situation.
you can get many2many ids in py onchange method and then like other fields you can set value of one2many fields also, just need to care about its format.
'sale_ids': [[0, False, {dictionary contains field value}]]
I hope this is helpful.
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
sept 20
|
3325 | ||
|
0
feb 19
|
3881 | ||
|
0
abr 16
|
3522 | ||
One2many onchange in ODOO
Resuelto
|
|
3
mar 16
|
14469 | |
|
1
sept 15
|
5449 |