Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2378 Lượt xem

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?


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

records = model.search([])

for record in records:

record.write({'active':False})
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 3 24
6594
0
thg 3 24
1831
0
thg 10 22
2639
0
thg 2 24
152
0
thg 12 23
1026