Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4573 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 25
888
1
thg 5 25
1625
ADD PROPERTIES Đã xử lý
1
thg 5 25
2735
2
thg 3 25
1511
1
thg 3 25
2690