summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-01-15 13:20:33 +0000
committerThibault Delavallée <tde@odoo.com>2020-02-13 15:29:40 +0000
commit3a7b08e5cf566319725b0738efe34ede60e6ca88 (patch)
tree478fdb0698b88e5e8e5104004a017da7921e13b7 /addons/web/static/src/js/views/basic/basic_controller.js
parent1508705ab481a21f48f1aea2e635c51cc278e11e (diff)
[REF] website(_crm): improve code about contacting visitors
Purpose of this commit is to clean mail and SMS composer calls in website_crm and website_crm_sms by separating composer preparation (context, values) from customer preparation (check valid data exists, creating partner). Indeed most of message composer code is based on records having a partner_id correctly set, unless some templates are used that dynamically creates the partner. SMS composer is more tolerant and check for phone / mobile numbers to use. By the way we make the action name translatable, because why not. LINKS Spotted when working on task ID 2056759 (remove crm.partner.binding mixin) Community PR odoo/odoo#44970 Enterprise PR odoo/enterprise#8307
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions