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
This question has been flagged
1
Reply
1339
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up