Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1139 มุมมอง

Hello , i have add task form view in my project management system in odoo version 15 in this i have one milestone select m2o field for assign milestone to task. In milestone i want one list view in which i want to display milestone_id wise tasks . For example i have 3 milestone 1-2-3 so one click on milestone 1 user can see all tasks assigned to milestone 1.


How can i achive this ?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello,

Add one One2many field in the milestone.

for example.

task_ids = fields.One2many("project.task", "milestone_id")

milestone_id is the field as same as that you have added in the task.

อวตาร
ละทิ้ง