Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
2409 Visualizações

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
Cancelar
Autor Melhor resposta

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

records = model.search([])

for record in records:

record.write({'active':False})
Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
4
mar. 24
6600
0
mar. 24
1860
0
out. 22
2669
0
fev. 24
152
0
dez. 23
1038