تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1257 أدوات العرض

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?

الصورة الرمزية
إهمال
الكاتب

Thanks, this is perfect.

أفضل إجابة

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


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أبريل 24
2018
1
سبتمبر 23
1915
5
يوليو 20
5805
0
مارس 17
3023
0
أكتوبر 21
1846