[IMP] mail.compose.message wizard form view: put template field, and template buttons, as invisible.

bzr revid: tde@openerp.com-20120911115947-rfjr8scrq06ni01s
This commit is contained in:
Thibault Delavallée 2012-09-11 13:59:47 +02:00
parent de5c80fb90
commit 2a317c55fb
1 changed files with 3 additions and 3 deletions

View File

@ -11,14 +11,14 @@
<xpath expr="//form/footer/button" position="before">
<field name="use_template" invisible="1"/>
<button icon="gtk-paste" type="object" name="toggle_template"
string="" help="Use a message template" />
string="" help="Use a message template" invisible="1"/>
<button icon="gtk-save" type="object" name="save_as_template"
string="" help="Save as a new template"/>
string="" help="Save as a new template" invisible="1"/>
</xpath>
<xpath expr="//form/notebook" position="after">
<group attrs="{'invisible':[('use_template','=',False)]}" colspan="4" col="4">
<field name="use_template" invisible="1"/>
<field name="template_id" colspan="3"
<field name="template_id" colspan="3" invisible="1"
on_change="onchange_template_id(use_template, template_id, composition_mode, model, res_id, context)"/>
</group>
</xpath>