diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-08-13 12:22:51 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-08-13 13:43:27 +0200 |
| commit | 9d370f6e317198fb5bcfc5bb2ddfcbe4d25966c5 (patch) | |
| tree | 1348a7abee049fcdf2c8e67045368263456a9696 /addons/email_template/wizard/mail_compose_message_view.xml | |
| parent | 868a77616d2d41e1946a1a76a9d22061212d1ab2 (diff) | |
[FIX] mail, email_template: prevent user from creating
templates in the templat_idm2o field on the wizard; prevent users from
creating models in the model_id m2o field on the template form view.
Diffstat (limited to 'addons/email_template/wizard/mail_compose_message_view.xml')
| -rw-r--r-- | addons/email_template/wizard/mail_compose_message_view.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/email_template/wizard/mail_compose_message_view.xml b/addons/email_template/wizard/mail_compose_message_view.xml index 2f755a625d6..810aa54603a 100644 --- a/addons/email_template/wizard/mail_compose_message_view.xml +++ b/addons/email_template/wizard/mail_compose_message_view.xml @@ -12,6 +12,7 @@ <div>Use template <!--FIX: To avoid css issue of many2one field in footer temporary used oe_form (BUG:1152464)--> <field name="template_id" nolabel="1" class='oe_inline' + options="{'no_create': True}" on_change="onchange_template_id(template_id, composition_mode, model, res_id, context)" domain="[('model_id.model','=',model)]" context="{'default_model': model, 'default_body_html': body, 'default_subject': subject}"/> </div> |
