تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
797 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أغسطس 25
2254
1
مايو 25
2522
1
أبريل 25
3502
1
أبريل 25
4337
1
أبريل 25
1804