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

Hello, I have the applications "Documents" and "Odoo studio" installed.

In "Documents" i have created several workspaces, i want to archive a document automatically via automated actions if the document has certain criteria. Is there a way to do so without the need for developpement and only with ODOO Studio?


الصورة الرمزية
إهمال
الكاتب أفضل إجابة

I found a way to do it with the following python code:

records = model.search([])

for record in records:

record.write({'active':False})
الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
4
مارس 24
7023
0
مارس 24
2061
0
أكتوبر 22
2890
0
فبراير 24
152
0
ديسمبر 23
1295