Skip to Content
मेन्यू
This question has been flagged
1 Reply
1567 Views

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?

Avatar
Discard
Author

Thanks, this is perfect.

Best Answer

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))


Avatar
Discard
Related Posts Replies Views Activity
3
अप्रैल 24
2340
1
सित॰ 23
2196
5
जुल॰ 20
6113
0
मार्च 17
3321
0
अक्तू॰ 21
2097