c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16941
[Bug 717376] Re: [trunk] email_template template preview error
** Branch linked: lp:openobject-client-web/6.0
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/717376
Title:
[trunk] email_template template preview error
Status in OpenERP Web Client:
Fix Released
Bug description:
Fresh database with marketing modules. I created test template and
tried to preview it. In console I had this traceback (I added context
variable output for debugging purposes in code):
[2011-02-11 22:42:40,172][email] INFO:root:context: {'lang': u'en_US', 'tz': False, 'search_view': 185, 'active_model': 'email.template', '_terp_view_name': u'Template Preview', 'client': 'web', 'active_ids': [1], 'template_id': 104, 'active_id': 1}
[2011-02-11 22:42:40,173][email] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
File "/home/kodemi/src/openerp6/server/openerp/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/kodemi/src/openerp6/server/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/kodemi/src/openerp6/server/openerp/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/kodemi/src/openerp6/server/openerp/osv/orm.py", line 1636, in fields_view_get
xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
File "/home/kodemi/src/openerp6/server/openerp/osv/orm.py", line 1319, in __view_look_dom_arch
fields = self.fields_get(cr, user, fields_def.keys(), context)
File "/home/kodemi/src/openerp6/server/openerp/osv/orm.py", line 1126, in fields_get
res[f]['selection'] = field_col.selection(self, cr, user, context)
File "/home/kodemi/src/openerp6/server/openerp/addons/email_template/email_template.py", line 727, in _get_model_recs
ref_obj_name = self.pool.get('ir.model').read(cr, uid, ref_obj_id['object_name'][0], ['model'], context)['model']
TypeError: 'bool' object is unsubscriptable
In context output you can see, that template_id != active_id, but it
must be equal.
References