[IMP] event: add default model on new email template
Before this commit, creating a new email template from the field didn't have a default model In this commit, event.registration is set as default value for model_id on new templates closes odoo/odoo#43606 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
committed by
Martin Trigaux
parent
03d385af8d
commit
dac062a490
@@ -270,7 +270,7 @@
|
||||
<tree string="Communication" editable="bottom">
|
||||
<field name="sequence" widget="handle"/>
|
||||
<field name="notification_type" invisible="1"/>
|
||||
<field name="template_id" attrs="{'required': [('notification_type', '=', 'mail')]}"/>
|
||||
<field name="template_id" attrs="{'required': [('notification_type', '=', 'mail')]}" context="{'default_model': 'event.registration'}"/>
|
||||
<field name="interval_nbr" attrs="{'readonly':[('interval_unit','=','now')]}"/>
|
||||
<field name="interval_unit"/>
|
||||
<field name="interval_type"/>
|
||||
|
||||
Reference in New Issue
Block a user