Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2393 Widoki

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?


Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

records = model.search([])

for record in records:

record.write({'active':False})
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
4
mar 24
6594
0
mar 24
1840
0
paź 22
2642
0
lut 24
152
0
gru 23
1033