← Back to team overview

openerp-india team mailing list archive

[Bug 1102344] Re: [7.0]traceback on 'add item' in a sales order (pricelist problem)

 

*** 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/1102344

Title:
  [7.0]traceback on 'add item' in a sales order (pricelist problem)

Status in OpenERP Addons (modules):
  New

Bug description:
  create a pricelist without any detail lines.
  create a new orderline
  select a product and you get a traceback.

  ExportService.getService(service_name).dispatch(method, params)   File
  "/home/agaplan/openerp/server/openerp/service/web_services.py", line
  614, in dispatch     res = fn(db, uid, *params)   File
  "/home/agaplan/openerp/server/openerp/osv/osv.py", line 169, in
  execute_kw     return self.execute(db, uid, obj, method, *args, **kw
  or {})   File "/home/agaplan/openerp/server/openerp/osv/osv.py", line
  123, in wrapper     return f(self, dbname, *args, **kwargs)   File
  "/home/agaplan/openerp/server/openerp/osv/osv.py", line 179, in
  execute     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/agaplan/openerp/server/openerp/osv/osv.py", line 166, in
  execute_cr     return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/agaplan/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
  "/home/agaplan/openerp/addons/sale/sale.py", line 948, in
  product_id_change     warning_msgs += _("No valid pricelist line found
  ! :") + warn_msg +"\n\n" TypeError: unsupported operand type(s) for
  +=: 'dict' and 'unicode'

  Reason is line 883 in sale.py 
          warning_msgs = {}
  should be : 
          warning_msgs = ''

  Patch is included.

  Peter

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


References