← Back to team overview

openerp-india team mailing list archive

[Bug 1227608] Re: click on save as new template gives traceback > KeyError: False

 

** Attachment added: "email template.ogv"
   https://bugs.launchpad.net/openobject-addons/+bug/1227608/+attachment/3828830/+files/email%20template.ogv

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 1 (openerp-dev-addons1)

** Summary changed:

- click on save as new template gives traceback > KeyError: False
+ [trunk]click on save as new template gives traceback > KeyError: False

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1227608

Title:
  [trunk]click on save as new template gives traceback > KeyError: False

Status in OpenERP Addons (modules):
  Confirmed

Bug description:
  Steps to reproduce :

  Go to Messaging > Compose new message > Fill subject field > and click
  on save as new template > Traceback will appear :

  OpenERP Server Error
  Traceback (most recent call last):
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/web/http.py", line 314, in dispatch
      response["result"] = self._call_function(**self.params)
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/web/http.py", line 174, in _call_function
      return self.func(*args, **kwargs)
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/web/http.py", line 1053, in nfunc
      return func(*args, **kwargs)
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/web/controllers/main.py", line 1103, in call_button
      action = self._call_kw(model, method, args, {})
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/web/controllers/main.py", line 1091, in _call_kw
      return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/email_template/wizard/mail_compose_message.py", line 128, in save_as_template
      template_values = record.onchange_template_id(template_id, record.composition_mode, record.model, record.res_id)['value']
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/osv/orm.py", line 374, in function_proxy
      return attr(self._cr, self._uid, [self._id], *args, **kwargs)
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/email_template/wizard/mail_compose_message.py", line 85, in onchange_template_id
      values = self.generate_email_for_composer_batch(cr, uid, template_id, [res_id], context=context)[res_id]
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/email_template/wizard/mail_compose_message.py", line 158, in generate_email_for_composer_batch
      template_values = self.pool.get('email.template').generate_email_batch(cr, uid, template_id, res_ids, context=context)
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/email_template/email_template.py", line 342, in generate_email_batch
      res_ids_to_templates = self.get_email_template_batch(cr, uid, template_id, res_ids, context)
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/email_template/email_template.py", line 133, in get_email_template_batch
      langs = self.render_template_batch(cr, uid, template.lang, template.model, res_ids, context)
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/addons/email_template/email_template.py", line 105, in render_template_batch
      records = self.pool[model].browse(cr, uid, res_ids, context=context) or [None]
    File "/home/odoo/runbot/static/openerp-dev-trunk-20478/server/openerp/modules/registry.py", line 103, in __getitem__
      return self.models[model_name]
  KeyError: False

  Regards,
  Tch

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1227608/+subscriptions


References