Skip to Content
Menu
This question has been flagged
1 Atsakyti
1315 Rodiniai

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?

Portretas
Atmesti
Autorius

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


Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
bal. 24
2084
1
rugs. 23
1962
5
liep. 20
5878
0
kov. 17
3060
0
spal. 21
1873