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...
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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')
Create an account today to enjoy exclusive features and engage with our awesome community!
RegistráciaRelated Posts | Replies | Zobrazenia | Aktivita | |
---|---|---|---|---|
|
2
máj 20
|
9218 | ||
|
2
okt 20
|
3123 | ||
|
1
aug 19
|
10518 | ||
|
2
júl 24
|
1471 | ||
|
1
mar 24
|
1760 |