I use odoo sh.
In form of employee i want to choose department. But this get display name. oh no, i want to get name - only name.
help me, display name so too long
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Proyectos
- MRP
Se marcó esta pregunta
1
Responder
1334
Vistas
Hi,
You can inherit the hr.department model in your custom module and set the _rec_name of the model as name field. Currently it is set as _complete_name
Code:
class Department(models.Model):
_inherit = "hr.department"
_rec_name = 'name'
Thanks
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse