i am new to odoo i, am trying to get data from my different model to one single form in tree view .how i can do it please help???
thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
i am new to odoo i, am trying to get data from my different model to one single form in tree view .how i can do it please help???
thanks
Your tree view can only show fields in a model, but for you to show the data from another model in your tree view, you can create a field and relate the new field to the data you want to get:
many_two_one_field = fields.Many2one('res.partner')
new_field = fields.Char(related='many_two_one_field.data_field')The above shows there is a connecting field in your current model with the field you want to get that from; many_two_one_field
Regards
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|
|
1
de nov. 22
|
3997 | ||
|
Live tracking in odoo.
Solved
|
|
2
d’ag. 22
|
8401 | |
|
|
1
de gen. 25
|
10262 | ||
|
|
1
de set. 21
|
7429 | ||
|
|
1
de març 21
|
6315 |