openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #25615
[Bug 1227608] Re: [trunk]click on save as new template gives traceback > KeyError: False
Hello,
I have fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1227608-avo
Revision ID: voraamitr@xxxxxxxxx-20130920071912-ltf5m5o9z4r77wu1
Revision No:8913
Thanks,
Amit.
** Changed in: openobject-addons
Status: Confirmed => Fix Committed
--
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):
Fix Committed
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