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

Sometimes project.task throw a notification with subtype "Stage changed" but sometimes not? is this normal?

Where in workflow a change the stage throw a notification with "Stage changed" subtypes?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Yes it is.

The notification "Stage changed" is only sent if the new state is not new, done or open.

Here is the related code snipped in the source code:

'stage_id': {
    'project.mt_task_stage': lambda self, cr, uid, obj, ctx=None: obj['state'] not in ['new', 'done', 'open'],
Ảnh đại diện
Huỷ bỏ
Tác giả

thanks for your answer but if I switch between 2 stages that have the same state(in progress for example) no notification is throw.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 15
4423
2
thg 12 15
635
0
thg 3 15
3734
3
thg 6 24
1809
1
thg 6 24
2869