Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
4407 Visninger

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
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
maj 20
9209
2
okt. 20
3116
1
aug. 19
10505
2
jul. 24
1463
1
mar. 24
1737