← Back to team overview

openerp-india team mailing list archive

[Bug 1071225] Re: [Trunk] Use Message template button is not working

 

** Description changed:

  Hello,
  
  Revision number:
  server (4508)
  addons (7849)
  web (3307)
  
+ Steps to reproduce the bug is shown in video.
+ 
  Traceback:
  
  Client Traceback (most recent call last):
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/http.py", line 174, in dispatch
-     response["result"] = method(self, **self.params)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/controllers/main.py", line 1255, in call_button
-     action = self.call_common(req, model, method, args, domain_id, context_id)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/controllers/main.py", line 1189, in call_common
-     return self._call_kw(req, model, method, args, {})
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/controllers/main.py", line 1213, in _call_kw
-     return getattr(req.session.model(model), method)(*args, **kwargs)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 42, in proxy
-     result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 30, in proxy_method
-     result = self.session.send(self.service_name, method, *args)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 105, in send
-     raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
- 
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/http.py", line 174, in dispatch
+     response["result"] = method(self, **self.params)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/controllers/main.py", line 1255, in call_button
+     action = self.call_common(req, model, method, args, domain_id, context_id)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/controllers/main.py", line 1189, in call_common
+     return self._call_kw(req, model, method, args, {})
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/controllers/main.py", line 1213, in _call_kw
+     return getattr(req.session.model(model), method)(*args, **kwargs)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 42, in proxy
+     result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 30, in proxy_method
+     result = self.session.send(self.service_name, method, *args)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 105, in send
+     raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
  
  Server Traceback (most recent call last):
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 91, in send
-     return openerp.netsvc.dispatch_rpc(service_name, method, args)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/netsvc.py", line 361, in dispatch_rpc
-     result = ExportService.getService(service_name).dispatch(method, params)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/service/web_services.py", line 585, in dispatch
-     res = fn(db, uid, *params)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 167, in execute_kw
-     return self.execute(db, uid, obj, method, *args, **kw or {})
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 121, in wrapper
-     return f(self, dbname, *args, **kwargs)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 176, in execute
-     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/audittrail/audittrail.py", line 503, in execute_cr
-     return fct_src(cr, uid, model, method, *args, **kw)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 164, in execute_cr
-     return getattr(object, method)(cr, uid, *args, **kw)
-   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/email_template/wizard/mail_compose_message.py", line 105, in toggle_template
-     onchange_res['attachment_ids'] = [(4, attachment_id) for attachment_id in onchange_res.pop('attachment_ids', [])]
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 91, in send
+     return openerp.netsvc.dispatch_rpc(service_name, method, args)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/netsvc.py", line 361, in dispatch_rpc
+     result = ExportService.getService(service_name).dispatch(method, params)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/service/web_services.py", line 585, in dispatch
+     res = fn(db, uid, *params)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 167, in execute_kw
+     return self.execute(db, uid, obj, method, *args, **kw or {})
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 121, in wrapper
+     return f(self, dbname, *args, **kwargs)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 176, in execute
+     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/audittrail/audittrail.py", line 503, in execute_cr
+     return fct_src(cr, uid, model, method, *args, **kw)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 164, in execute_cr
+     return getattr(object, method)(cr, uid, *args, **kw)
+   File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/email_template/wizard/mail_compose_message.py", line 105, in toggle_template
+     onchange_res['attachment_ids'] = [(4, attachment_id) for attachment_id in onchange_res.pop('attachment_ids', [])]
  TypeError: 'NoneType' object is not iterable
- 
  
  Thanks,
  hip

-- 
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/1071225

Title:
  [Trunk] Use Message template button is not working

Status in OpenERP Addons (modules):
  New

Bug description:
  Hello,

  Revision number:
  server (4508)
  addons (7849)
  web (3307)

  Steps to reproduce the bug is shown in video.

  Traceback:

  Client Traceback (most recent call last):
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/http.py", line 174, in dispatch
      response["result"] = method(self, **self.params)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/controllers/main.py", line 1255, in call_button
      action = self.call_common(req, model, method, args, domain_id, context_id)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/controllers/main.py", line 1189, in call_common
      return self._call_kw(req, model, method, args, {})
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/controllers/main.py", line 1213, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 42, in proxy
      result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 30, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 105, in send
      raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

  Server Traceback (most recent call last):
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/web/session.py", line 91, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/netsvc.py", line 361, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/service/web_services.py", line 585, in dispatch
      res = fn(db, uid, *params)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 167, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 121, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/audittrail/audittrail.py", line 503, in execute_cr
      return fct_src(cr, uid, model, method, *args, **kw)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/osv/osv.py", line 164, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/odoo/runbot/static/openerp-dev-trunk-23108/server/openerp/addons/email_template/wizard/mail_compose_message.py", line 105, in toggle_template
      onchange_res['attachment_ids'] = [(4, attachment_id) for attachment_id in onchange_res.pop('attachment_ids', [])]
  TypeError: 'NoneType' object is not iterable

  Thanks,
  hip

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


References