summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2018-09-11 16:53:23 +0200
committerNicolas Lempereur <nle@odoo.com>2018-09-12 13:18:35 +0200
commit8e77632e5854477f802a3b2944b234dd45b46411 (patch)
tree06079cb6a05ff268b09147f2b8cf106b4dce7379 /addons/web/static/src/js/fields/basic_fields.js
parent561ee39356408cb7edcffc694291dd029f236e3f (diff)
[FIX] *mail_thread: don't modify modified help
The 'help' of window action is often fiddled with, adding thing before, after or arround it. For example in CRM leads, we add at the beginning "Click to add a new opportunity" with an arrow towards the button, and after if there is a mail alias: "All email incoming to * will automatically create new...". But for crm.lead, hr.expense, sale.order this would not take into account that the fiddled "help" can be edited, so if we edit 2 times help in studio or backend action editing, we would get: Click to add a new opportunity Click to add a new opportunity Click to add a new opportunity [Original help content] All email incoming to * will automatically create new... All email incoming to * will automatically create new... All email incoming to * will automatically create new... And see several "arrows" towards the button (in enterprise the additional ones are on same color background). With this commit we do what is done in "mail.thread" by default which is not fiddling with the `help` if has been fiddled before (if it contains "oe_view_nocontent_create" class). note: this is the 11.0 version of #26912 opw-1877663 closes #26911
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions