Opportunity Probability Field Blank for new opportunities created

Hi, I was originally running SuiteCRM 7.x offline in an XAMPP server and it ran fine and would show the % probabilities for sales opportunities and automatically populate based on the sales stage. I later installed a clean fresh copy of SuiteCRM 8.2.4 on an apache server hosted on a website. I reimported the existing opportunities, accounts, leads, etc. and all looked good. Those also showed the sales probabilities correctly. However, for creating new opportunities, it would not link the sales probability to the sales stage, and it would leave the field at 0%. Thinking a new version may resolve this issues, today I upgraded from 8.2.4 to 8.3.0. The upgrade went fine. However, the issue still remains.

I have checked the sales probability and sales stage dom and nothing seems out of place there. Screenshots attached.

I have the same issue with Suitecrm 8.6.2… any idea?

I don’t know the answer, but in case this helps, I think the relevant code is this

https://github.com/salesagility/SuiteCRM-Core/blob/hotfix/public/legacy/modules/Opportunities/Opportunity.php#L362-L368

I migrated to 8.7.1 and the issue is still here… I seleted a sales stage but the probability field is always empty. Any idea?.. I saw the code @pgr but not work.

Check field under studio

It’s ok in the studio… the dropdown sales_probability_dom is ok, and the code inside the opportunity.php is ok:

    //if probablity isn't set, set it based on the sales stage
    if (!isset($this->probability) && !empty($this->sales_stage)) {
        $prob_arr = $app_list_strings['sales_probability_dom'];
        if (isset($prob_arr[$this->sales_stage])) {
            $this->probability = $prob_arr[$this->sales_stage];
        }
    }

Looks good here:

username: will
password: will

https://suite8demo.suiteondemand.com/#/opportunities/index?return_module=Opportunities&return_action=DetailView

I tried in your site and the same error:

When you create the opportunity, you select a sales stage, you left empty the probability field and save… the probability should be filled with information in the sales_probability_dom dropdown, but doesn´t work.

I don’t think, it works like that.

You may need dynamic field settings:

But why doesn´t work in the demo site? In version 7.x you changed sales stage and the probability changed too.