Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
2112 Vues

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

Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Meilleure réponse

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

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

Avatar
Ignorer
Auteur

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

Publications associées Réponses Vues Activité
1
avr. 23
1869
3
août 25
2367
1
mai 25
2560
1
avr. 25
3520
1
avr. 25
4346