Hi,
I have a user who likes to work with numbers. He wants to see the id field concatenated with the name of the customers in the search to create a sale order.
Does anyone know how I can achieve this? We are using v14.
Regards.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I have a user who likes to work with numbers. He wants to see the id field concatenated with the name of the customers in the search to create a sale order.
Does anyone know how I can achieve this? We are using v14.
Regards.
Hi,
You can use the name_get() function in res.partner model.
def name_get(self):
res = []
for record in self:
name = record.name
rec_id = str(record.id)
display_name = rec_id + ' ' + name
res.append((record.id, display_name))
return res
Here you will get the id with name
Regards
Create an account today to enjoy exclusive features and engage with our awesome community!
Přihlásit seRelated Posts | Odpovědi | Zobrazení | Aktivita | |
---|---|---|---|---|
|
1
bře 18
|
7225 | ||
|
5
srp 24
|
3266 | ||
|
0
úno 24
|
28 | ||
How to become a Odoo Ready Partner ?
Vyřešeno
|
|
1
kvě 23
|
5670 | |
|
0
led 22
|
2766 |
It work's like a charm. Thank you.