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

Hello,

Our projects are linked to analytical accounts. When the project is completed, we archive it, but the associated analytical account is often forgotten to be archived.

I would like to create an automated action to automatically archive an analytical account when the related project is archived.

I have started but I am stuck on the Python code to enter.

Can you please help me?

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks, this is perfect.

Câu trả lời hay nhất

You can try this one:
1. follow my setting for the automatedd action and add this code

analytic = record.analytic_account_id
if analytic and not record.active:
    analytic.write(dict(active = False))


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 4 24
2146
1
thg 9 23
2002
5
thg 7 20
5919
0
thg 3 17
3156
0
thg 10 21
1922