Automatic message for supplier / competitor product

Hi all,

 

Quick question : when using the Competitor detail in the Opportunity section, an automatic message appears if the Supplier or Competitor product fields aren't filled in. I do not need this information though, how can I deactivate this message ?

 

Thanks in advance and have a lovely week !

Like 0

Like

1 comments

Hello,

 

You need to replace OpportunityCompetitorPageV2 of the Opportunity package and change this method:

From :

externalValidate: function() {
					if (!this.get("Supplier") && !this.get("CompetitorProduct")) {
						var message = Ext.String.format(
							this.get("Resources.Strings.SupplierOrProductRequiredMessage"));
						this.showInformationDialog(message);
						return false;
					}
					return true;
				},

 

To:

externalValidate: function() {
					if (!this.get("Supplier") && !this.get("CompetitorProduct")) {
 
						return true;
					}
					return true;
				},

After that you will not get the notification and will be able to save record on the competitors detail.

 

Regards,

Dean

Show all comments