1 # -*- coding: utf-8 -*-
3 from openerp.osv import osv
4 from openerp.tools.translate import _
7 class EmailTemplate(osv.Model):
8 _inherit = 'email.template'
10 def action_edit_html(self, cr, uid, ids, context=None):
12 raise ValueError('One and only one ID allowed for this action')
13 url = '/website_mail/email_designer?model=email.template&res_id=%d&enable_editor=1' % (ids[0],)
15 'name': _('Edit Template'),
16 'type': 'ir.actions.act_url',