Suppose I have 2 model, M1 & M2.
M1 with 2 fields, M1F1 & M1F2, and has some records.
M2 has M2F1(M2O, related to M1F1), M2F2, and some other fields.
I'd like to let M2F2 autofill with the same record of M1F2.
How do I do that?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Suppose I have 2 model, M1 & M2.
M1 with 2 fields, M1F1 & M1F2, and has some records.
M2 has M2F1(M2O, related to M1F1), M2F2, and some other fields.
I'd like to let M2F2 autofill with the same record of M1F2.
How do I do that?
If first field is Boolean for example:
1. var = fields.Boolean()
Second field will be:
2. var_related = fields.Boolean(related=model.name.var)
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
ago 24
|
922 | ||
Customer_rank and M2O field
Resuelto
|
|
3
may 23
|
2673 | |
|
1
dic 19
|
3365 | ||
|
1
dic 15
|
13293 | ||
|
0
mar 15
|
3817 |