跳至内容
菜单
此问题已终结
4567 查看

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 ?

形象
丢弃
相关帖文 回复 查看 活动
0
7月 25
885
1
5月 25
1619
1
5月 25
2692
2
3月 25
1511
1
3月 25
2653