Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4427 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 20
9216
2
ต.ค. 20
3121
how get value from one2many field? แก้ไขแล้ว
1
ส.ค. 19
10512
2
ก.ค. 24
1468
1
มี.ค. 24
1753