diff options
| author | jvm-odoo <jvm@odoo.com> | 2019-11-08 07:45:03 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-11-08 13:09:05 +0000 |
| commit | f59b9fafa93c4dc100d38eba08d294d4ef906183 (patch) | |
| tree | 1b5b738ba02fb63595755ccb874541c06c9afdf6 /addons/theme_default/data/theme_default_data.xml | |
| parent | 4fdb07f81bdd0e461a168d5357ef8f05d9a897cb (diff) | |
[FIX] crm: fix partner_id while converting a lead to an opportunity
Prerequisites
- Configure a mail server (incoming)
- Enable leads in CRM app
- Create a sales team with a mail alias (ex: testcrm@odoo.com)
and check "Pipeline" and "Leads"
- Set a partner email with one of yours (ex: bob@odoo.com) /!\
- Send a mail from bob to testcrm
- In the incoming mail server click on "Fetch"
Reproduce the issue:
- Convert the generated lead to an opportunity
- Choose "Existing customer" and set another one than the actual
- The opportunity is created but the customer is the old one
Cause:
The given partner_id is overriden by the old one in the
`handle_partner_assignation` method.
This commit gives the priority to the new partner_id.
OPW-2089404
closes odoo/odoo#40031
X-original-commit: e1833936255839cd34eba5758ca4c3124fd2522c
Signed-off-by: Jason Van Malder <jasonvanmalder@users.noreply.github.com>
Diffstat (limited to 'addons/theme_default/data/theme_default_data.xml')
0 files changed, 0 insertions, 0 deletions
