-
- Downloads
[FIX] crm: sync the email / phone with the partner
Bug === If we 1. Open a lead with an email but without partner 2. Set a partner without email on the lead 3. The warning "The email will be propagated" is visible 4. When saving the form, the email is not propagated even if the warning message was visible Solution ======== The reason is that, as the email was not changed, the inverse method of this field was not called and so the email was not propagated. The best solution would be to use "force_save" on those fields. But this feature only works on readonly fields. So, we simulate a real "force_save" on the email / phone, directly in JS. That way the inverse will be called, and if necessary, the email / phone will be propagated. Task-2704904 closes odoo/odoo#84426 X-original-commit: 72718877 Signed-off-by:Thibault Delavallee (tde) <tde@openerp.com> Co-authored-by:
flch-odoo <flch@odoo.com>
Showing
- addons/crm/static/src/js/crm_form.js 33 additions, 1 deletionaddons/crm/static/src/js/crm_form.js
- addons/crm/static/tests/tours/crm_email_and_phone_propagation.js 68 additions, 0 deletions...crm/static/tests/tours/crm_email_and_phone_propagation.js
- addons/crm/tests/test_crm_ui.py 71 additions, 4 deletionsaddons/crm/tests/test_crm_ui.py
- addons/crm/views/assets.xml 23 additions, 0 deletionsaddons/crm/views/assets.xml
Loading
Please register or sign in to comment