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
ตอบกลับ
1338
มุมมอง
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
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ