summaryrefslogtreecommitdiff
path: root/odoo/models.py
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2017-06-29 14:07:01 +0200
committerNicolas Martinelli <nim@odoo.com>2017-06-30 10:20:56 +0200
commitd1e92c312f2fdfd63d59ea8ec27eb264750873b7 (patch)
tree02153fc18491bd8f5521269ab5ac876546919d67 /odoo/models.py
parentaf11e74c2e1f5d37e01c71d29ee1fad2eedcd060 (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 'odoo/models.py')
0 files changed, 0 insertions, 0 deletions