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
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
1
회신
1337
화면
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