Odoo Help

0

How can i do display name for one2many_list on listview

By
Ilyas Bahri Dudak
on 4/5/16, 11:02 AM 624 views

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

0
CatsandDogs
On 4/6/16, 8:48 AM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 4/5/16, 11:02 AM
Seen: 624 times
Last updated: 4/6/16, 8:48 AM