Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
7913 Weergaven

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


Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
nov. 22
4013
2
aug. 22
8417
1
jan. 25
10280
1
sep. 21
7445
1
mrt. 21
6323