summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorstd-odoo <std@odoo.com>2020-04-17 08:18:40 +0000
committerThibault Delavallée <tde@odoo.com>2020-05-18 15:03:29 +0000
commit89ca89ca9269aea9ce2850db28ef6a7477e1ef18 (patch)
tree8a5b0ae46436e965319f5ace7e717ad4532b7280 /addons/web/static/src/js/views/basic/basic_controller.js
parentdf92415f2186ff8dceda0a0fe1464dfbe6a7dc98 (diff)
[IMP] crm: allow editing phone and email of the lead
PURPOSE Get rid of email / phone behavior on lead that is hard to understand: if and contact is set fields are readonly, if not they are editable. SPECIFICATIONS We want to be able to edit them if a partner is set. If we write on the email/phone of the lead, it should write on the partner (and vice-versa). Even a Falsy value is propagated to the customer. Reason is that if you update a contact information, it should be available for all other records. Setting a void value probably means you want to stop contacting this contact. This is now also propagated. SIDE NOTE: MOBILE FIELD Mobile field is a bit different. Main phone contact field is phone, and is placed in the main contact section of the lead view. Mobile is under a more technical / detailled tab and is not completely synchronized with the partner. Like zip, city or country, changing partner updates lead information but changing lead values does not propagate those to the customer. Those fields can be used for deal-specific information if needed. Statistics: 5k crm.lead use mobile for 80k active records which means it is a "lesser field". LINKS Task ID 2207636 PR odoo/odoo#48395 Upgrade PR odoo/upgrade#1025
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions