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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- 專案管理
- MRP
此問題已被標幟
1
回覆
1343
瀏覽次數
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