I need to trickle up the internal notes and attachments to the parent accout. For an example if Branch A is the parent Company of Branch B and we have an employee Mr.X from Branch B, we need to trickle up all of the internal notes and attachments of Mr.X, in not only Branch B ,also in Branch A.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
1
ตอบกลับ
2781
มุมมอง
You can make a new method in the employee that returns the internal notes and attachments. If you search for the employee record you can call this method to get the data from anywhere.
def get_employee_notes_attachments(self):
return employee.internal_notes, employee.attachments
and call it like this:
employee = self.env['employee.model'].search([('id', '=', employee_id)])
notes, attachments = employee.get_employee_notes_attachments()
I don't know what odoo version you use, this answer would be for v8 or newer.
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
Odoo 18 - Notes module
แก้ไขแล้ว
|
|
1
ม.ค. 25
|
2566 | |
|
0
ธ.ค. 24
|
1490 | ||
|
0
ก.ย. 23
|
1746 | ||
How to set attachments to public?
แก้ไขแล้ว
|
|
1
มี.ค. 23
|
6697 | |
|
2
เม.ย. 22
|
4139 |