Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2398 Näkymät

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
Hylkää
Tekijä Paras vastaus

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

records = model.search([])

for record in records:

record.write({'active':False})
Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
4
maalisk. 24
6595
0
maalisk. 24
1849
0
lokak. 22
2654
0
helmik. 24
152
0
jouluk. 23
1034