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

I need an python function to select all task which are in open stage how can I do that using python code I am using odoo16

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

Hi,

You can get all the tasks that are in the open state by using the following Python code 
open_tasks = self.env['project.task'].search([('stage_id.id', '=', 'open_stage_id' )])

In the above code change the value of open_stage_id with the corresponding id of the stage where the task is in open.

Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 25
2224
1
พ.ค. 25
2505
1
เม.ย. 25
3496
1
เม.ย. 25
4323
1
เม.ย. 25
1799