← Back to team overview

openerp-india team mailing list archive

[Bug 1102256] Re: TypeError: unsupported operand type(s) for +=: 'dict' and 'unicode'

 

*** This bug is a duplicate of bug 1083778 ***
    https://bugs.launchpad.net/bugs/1083778

** This bug has been marked a duplicate of bug 1083778
   Declared a variable of type dictionary and then try to do a + = with a variable of type string in the sale.order model

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

Title:
  TypeError: unsupported operand type(s) for +=: 'dict' and 'unicode'

Status in OpenERP Addons (modules):
  New

Bug description:
  OpenERP Version 7.0-20130118-002240
  WebClient

  Create a quotation/sales order and put a negative quantity, the follow
  error occurs.

  OpenERP Server Error
  Client Traceback (most recent call last):
    File "/opt/openerp/server/openerp/addons/web/http.py", line 195, in dispatch
      response["result"] = method(self, **self.params)
    File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1078, in call_kw
      return self._call_kw(req, model, method, args, kwargs)
    File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1070, in _call_kw
      return getattr(req.session.model(model), method)(*args, **kwargs)
    File "/opt/openerp/server/openerp/addons/web/session.py", line 43, in proxy
      result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
    File "/opt/openerp/server/openerp/addons/web/session.py", line 31, in proxy_method
      result = self.session.send(self.service_name, method, *args)
    File "/opt/openerp/server/openerp/addons/web/session.py", line 104, in send
      raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

  
  Server Traceback (most recent call last):
    File "/opt/openerp/server/openerp/addons/web/session.py", line 90, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/opt/openerp/server/openerp/netsvc.py", line 289, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/opt/openerp/server/openerp/service/web_services.py", line 614, in dispatch
      res = fn(db, uid, *params)
    File "/opt/openerp/server/openerp/osv/osv.py", line 169, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/opt/openerp/server/openerp/osv/osv.py", line 123, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/opt/openerp/server/openerp/osv/osv.py", line 179, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/opt/openerp/server/openerp/osv/osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/opt/openerp/server/openerp/addons/sale_stock/sale_stock.py", line 563, in product_id_change
      lang=lang, update_tax=update_tax, date_order=date_order, packaging=packaging, fiscal_position=fiscal_position, flag=flag, context=context)
    File "/opt/openerp/server/openerp/addons/sale/sale.py", line 956, in product_id_change
      warning_msgs += _("No valid pricelist line found ! :") + warn_msg +"\n\n"
  TypeError: unsupported operand type(s) for +=: 'dict' and 'unicode'

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


References