Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2380 Vistas

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
Descartar
Autor Mejor respuesta

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

records = model.search([])

for record in records:

record.write({'active':False})
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
mar 24
6594
0
mar 24
1833
0
oct 22
2641
0
feb 24
152
0
dic 23
1029