Skip to Content
Menú
This question has been flagged
1 Respondre
4170 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
2
de maig 20
8905
2
d’oct. 20
2735
1
d’ag. 19
10143
2
de jul. 24
1180
1
de març 24
1470