Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4442 Zobrazení

I use one2may_list widget that is get record ids

eg: 1,2,3,4

I want to get display name

eg: name1,name2,name3

how can i do this? please help me...

Avatar
Zrušit
Nejlepší odpověď

Try to the below example,


alias_ids = fields.One2many('product.alias', 'product_id', 'Alias')

class product_alias(models.Model):

_name = "product.alias"

_description = "Product alias"

alias = fields.Char('Alias')

product_id = fields.Many2one('product.brand', string='Brand')

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 20
9223
2
říj 20
3137
1
srp 19
10536
2
čvc 24
1479
1
bře 24
1763