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

Hi there, I can do very basic python coding, trying to create a trigger to do the following:


When a RFQ under Purchase model gets confirmed to a Purchase Order. The next_activity field value = "Waiting on ETA".


I don't have a clue how to start it in Automation editor. If anyone could point me to the right direction, thank you in advance.

الصورة الرمزية
إهمال
أفضل إجابة

No need of Python code.

Create an automated action (In debug mode, menu: Settings / Technical / Automation / Automated actions) 

Model: Purchase Order.

Action to do: Create activity

Trigger: On Update.

Trigger field: Status

Before update domain: 

["|",["state","=","draft"],["state","=","sent"]]

Apply on domain: 

["|",["state","=","purchase"],["state","=","done"]]

On the tab "activity" define it as you need. 

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

Thank you, this worked so well!!!

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أغسطس 25
491
2
أغسطس 25
1520
0
فبراير 25
1616
1
أغسطس 25
2230
2
ديسمبر 24
1879