diff options
| author | Toufik Ben Jaa <tbe@odoo.com> | 2019-02-06 14:46:11 +0000 |
|---|---|---|
| committer | Toufik Ben Jaa <tbe@odoo.com> | 2019-02-06 14:54:25 +0000 |
| commit | fe03f7b6b89589c6417b82c582e7c98519858fc1 (patch) | |
| tree | 477d7bbedd72fd6d8d1408a41ef49d87b688742f /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 98d042484868e53ff801ff891cabf4afbfd8a059 (diff) | |
[FIX] crm: avoid crash when merging leads
- When merging leads that creates a partner, an error could be thrown
due to the `res.partner` `default_get` method that reads values from the
lead that creates the partner.
The issue is due to the fact that the `crm.lead` record is merged (and
unlinked), trying to read it will cause an error since the records
doesn't exists anymore.
This fix checks that the `crm.lead` we are trying to read from exists.
closes odoo/odoo#30895
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
