跳至内容
菜单
此问题已终结

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
2
5月 20
9215
2
10月 20
3120
1
8月 19
10512
2
7月 24
1467
1
3月 24
1752