summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-06-29 14:07:01 +0200
committerNicolas Martinelli <nim@odoo.com>2017-07-12 11:56:23 +0200
commit058cc22d2c680f73501ce1a49762eda1a4c9ce9d (patch)
tree06325db23f51111f6204ee16e3a872c7130653ab /addons/web/static/src/js/fields
parentd52f0a29b4c812df71f862d20ec7f0f604dac394 (diff)
[FIX] website_form: send email with subject
- Use the form builder to send an email - Customize the snippet to include the subject and the body - Send a mail => The subject is not included in the email This is because the subject is filtered out and considered as a blacklisted field. It happens because `mail.mail` inherits from `mail.message`. The field property `website_form_blacklisted` is set to: - `True` for `mail.mail` - `False` for `mail.message` Since we go through all inherited models, the property on `mail.mail` is overriden by the property on `mail.message`. It is actually not necessary to go through all inherited models, since in the case of `inherits`, we copy the fields of the inherited model to the target model. The check is simplified by only checking the fields of the current model. Based on work of @nla-odoo opw-748926
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions