コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4461 ビュー

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
9269
2
10月 20
3154
1
8月 19
10565
2
7月 24
1510
1
3月 24
1791