Skip to Content
Menu
This question has been flagged
1 Reply
2436 Views

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?


Avatar
Discard
Author Best Answer

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

records = model.search([])

for record in records:

record.write({'active':False})
Avatar
Discard
Related Posts Replies Views Activity
4
Mar 24
6660
0
Mar 24
1884
0
Oct 22
2697
0
Feb 24
152
0
Dec 23
1068