Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
2391 Visninger

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
Kassér
Forfatter Bedste svar

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

records = model.search([])

for record in records:

record.write({'active':False})
Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
4
mar. 24
6594
0
mar. 24
1839
0
okt. 22
2641
0
feb. 24
152
0
dec. 23
1033