[Trunk] Email_template: Using 'save as template' crash, at least in the Inbox

Bug #1070372 reported by Thibault Delavallée (OpenERP)
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
Thibault Delavallée (OpenERP)

Bug Description

[Trunk] Email_template: Using 'save as template' crash, at least in the Inbox

Steps :
- install mail
- install email_template
- click on 'Write', near the topbar avatar
- type something, click on 'Save as template'
- enjoy

Server Traceback (most recent call last):
  File "/home/openerp/workspace/openerp-dev/web/trunk/addons/web/session.py", line 91, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/openerp/workspace/openerp-dev/server/trunk/openerp/netsvc.py", line 361, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/openerp/workspace/openerp-dev/server/trunk/openerp/service/web_services.py", line 585, in dispatch
    res = fn(db, uid, *params)
  File "/home/openerp/workspace/openerp-dev/server/trunk/openerp/osv/osv.py", line 168, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/openerp/workspace/openerp-dev/server/trunk/openerp/osv/osv.py", line 121, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/openerp/workspace/openerp-dev/server/trunk/openerp/osv/osv.py", line 177, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/openerp/workspace/openerp-dev/server/trunk/openerp/osv/osv.py", line 165, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/openerp/workspace/openerp-dev/addons/trunk-mail-concreting-tde/email_template/wizard/mail_compose_message.py", line 139, in save_as_template
    record.write({'template_id': template_id, 'use_template': True})
  File "/home/openerp/workspace/openerp-dev/server/trunk/openerp/osv/orm.py", line 375, in function_proxy
    return attr(self._cr, self._uid, [self._id], *args, **kwargs)
  File "/home/openerp/workspace/openerp-dev/server/trunk/openerp/osv/orm.py", line 4094, in write
    self._check_selection_field_value(cr, user, field, vals[field], context=context)
  File "/home/openerp/workspace/openerp-dev/server/trunk/openerp/osv/orm.py", line 2821, in _check_selection_field_value
    _('The value "%s" for the field "%s.%s" is not in the selection') % (value, self._table, field))
except_orm: (u'ValidateError', u'The value "3" for the field "mail_compose_message.template_id" is not in the selection')

Revision history for this message
Thibault Delavallée (OpenERP) (tde-openerp) wrote :

This bug is fixed in trunk, as it seems not to happen anymore in rev 8073.

Thibault.

Changed in openobject-addons:
status: Confirmed → Fix Released
tags: added: mail
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.