跳至內容
選單
此問題已被標幟
1 回覆
4429 瀏覽次數

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
9216
2
10月 20
3121
1
8月 19
10513
2
7月 24
1469
1
3月 24
1753