[IMP] improves the add/remove actions and preview buttons in email template form view (addon email_template)

bzr revid: ged@openerp.com-20140414130910-hrx1wqy71ahdsmy4
This commit is contained in:
Gery Debongnie 2014-04-14 15:09:10 +02:00
parent 1af4ca6cac
commit ecd2b4fd30
1 changed files with 9 additions and 5 deletions

View File

@ -14,16 +14,20 @@
</div> </div>
<div class="oe_right oe_button_box" name="buttons"> <div class="oe_right oe_button_box" name="buttons">
<field name="ref_ir_act_window" invisible="1"/> <field name="ref_ir_act_window" invisible="1"/>
<button class="oe_inline oe_stat_button" name="create_action" string="Add action" type="object" <button class="oe_inline oe_stat_button" name="create_action" type="object"
attrs="{'invisible':[('ref_ir_act_window','!=',False)]}" icon="fa-plus" attrs="{'invisible':[('ref_ir_act_window','!=',False)]}" icon="fa-plus"
help="Display an option on related documents to open a composition wizard with this template" widget="statinfo"/> help="Display an option on related documents to open a composition wizard with this template">
<button name="unlink_action" string="Drop action" type="object" <div>Add<br/>Context Action</div>
</button>
<button name="unlink_action" type="object"
class="oe_stat_button" icon="fa-minus" class="oe_stat_button" icon="fa-minus"
attrs="{'invisible':[('ref_ir_act_window','=',False)]}" attrs="{'invisible':[('ref_ir_act_window','=',False)]}"
help="Remove the contextual action to use this template on related documents" widget="statinfo"/> help="Remove the contextual action to use this template on related documents" widget="statinfo">
<div>Remove<br/>Context Action</div>
</button>
<button class="oe_inline oe_stat_button" name="%(wizard_email_template_preview)d" icon="fa-search-plus" string="Preview" <button class="oe_inline oe_stat_button" name="%(wizard_email_template_preview)d" icon="fa-search-plus" string="Preview"
type="action" target="new" type="action" target="new"
context="{'template_id':active_id}" widget="statinfo"/> context="{'template_id':active_id}"/>
</div> </div>
<notebook> <notebook>
<page string="Mailing Template"> <page string="Mailing Template">