Skip to Content
Menu
This question has been flagged
1 Atsakyti
4405 Rodiniai

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...

Portretas
Atmesti
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')

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
geg. 20
9209
2
spal. 20
3113
1
rugp. 19
10505
2
liep. 24
1461
1
kov. 24
1735