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

I asked myself how to make a filter on an automatic action so that this action only applies to newly created elements (not on modification).

I first though of using a pre-filter, checking that id is False, but looking at the code, I've seen that on creation, actions with a pre-filter are ignored.

So for now the solution I have though of is checking that creation_time and modification time are the same. But I think you can set it as a domain filter, as domain filter match a field with a raw value, not a field with another field.

Anyone has an idea to do that ?

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
elok. 25
15
0
heinäk. 25
889
1
toukok. 25
1626
1
toukok. 25
2746
2
maalisk. 25
1511