Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2066 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

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

Awatar
Odrzuć
Autor

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

Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 23
1842
1
maj 25
2390
1
kwi 25
3422
1
kwi 25
4231
1
kwi 25
1733