Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] crm: stage auto-probability not taken into account when creatin…
…g an opportunity from kanban view 1. on CRM module -> Select Pipeline -> Create a column (e.g. 'Test') 2. Edit this Stage 3. Toggle on the field 'Change Probability Automatically' 4. Set a stage probability (e.g. 50%) 5. Create an opportunity on this stage, using the quick create widget of the kanban view => The probability of the newly created opportunity is not 50%, as it should be expected It takes the default_probability, using a default_stage_id, which is the 'New' column having initially a probability of 10%. The stage_id is correctly assigned to the newly created opportunity thanks to environment variable 'default_stage_id', but not the probability. We solved this bug by updating the probability of the opportunity, after creating the object. We cannot do it at the same time, because BaseObject.create parse the missing fields in an order where probability comes before stage_id. This fix is limited to the quick creation of opportunity by means of its name only. In particular, it doesn't overwrite the input of the user in the form view. opw-772310
- Loading branch information