Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2386 Vues

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
Ignorer
Auteur Meilleure réponse

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

records = model.search([])

for record in records:

record.write({'active':False})
Avatar
Ignorer
Publications associées Réponses Vues Activité
4
mars 24
6594
0
mars 24
1837
0
oct. 22
2641
0
févr. 24
152
0
déc. 23
1033