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

Is there a way to make the tags field required when creating a new opportunity in the CRM ?

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

A "work around" to solve this without studio or additional modules could be creating an Automated Action to pop up a warning when creating new opportunities:



code:

if record.stage_id.name == 'New' and not record.tag_ids:
    raise UserError('Please set a tag for this opportunity.')

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

You can use attrs to make it readonly on Opportunity state.

attrs="{'required': [('type','=','opportunity')]}"

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

already did that I want to get an invalid value error when the tags field is empty

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أبريل 23
1887
3
أغسطس 25
2484
1
مايو 25
2584
1
أبريل 25
3549
1
أبريل 25
4396