diff options
| author | Florimond Husquinet (fhu) <fhu@odoo.com> | 2019-10-18 07:45:39 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-11-18 11:04:05 +0000 |
| commit | c9bed78c2bc674d43a2c924d91fd379565927410 (patch) | |
| tree | e1d57c5eac2c5ef76059a17882e167968c9ec238 /addons/web/static/src/js/views/basic/basic_renderer.js | |
| parent | a8fdda66385c330a688415849c845e4be64cd74c (diff) | |
[FIX] crm: compute lead probability on kanban quick create
-In CRM, click the CREATE button.
-Only enter a title for the new lead and directly click ADD.
-Click on the newly created lead to view its details.
Before this commit:
although a probability could be computed based on the stage of the lead, this
field has a default value and, at creation time, this value doesn't end up in
the list of values from which the `_write_probability` function decide whether
to recompute the probability.
After this commit:
The `_write_probability` function, renamed `_update_probability`, doesn't check
whether it should or not update the probability. It just does it. This function
is directly called in the `create`. `_should_update_probability` is called
before `_update_probability` in the `write`.
Task ID : 2081480
closes odoo/odoo#40411
X-original-commit: 483a94116629e418ebb224bad375747cf9ab3c1d
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_renderer.js')
0 files changed, 0 insertions, 0 deletions
