← Back to team overview

openerp-india team mailing list archive

[Bug 1090931] Re: Latest Trunk: Create sales order.

 

Contributed fix landed at revision 8400 rev-id:
odo@xxxxxxxxxxx-20121219012510-m04yzgxnw9yzwtqc

Thanks for reporting and fixing!

** Changed in: openobject-addons
       Status: Confirmed => Fix Released

** Changed in: openobject-addons
    Milestone: None => 7.0

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

Title:
  Latest Trunk: Create sales order.

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  Hello,

  Steps to produce bug:
  ------------------------------

      Create sales order. Add 2 products. Then duplicate this sales
  record.

      Add one more product in duplicated sales order and remove others
  product and save sales order.

  This bug with latest trunk.
  ------------------------------------
  Server Traceback (most recent call last):
    File "/home/livetrunk/static/trunk/server/openerp/addons/web/session.py", line 87, in send
      return openerp.netsvc.dispatch_rpc(service_name, method, args)
    File "/home/livetrunk/static/trunk/server/openerp/netsvc.py", line 281, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/home/livetrunk/static/trunk/server/openerp/service/web_services.py", line 603, in dispatch
      res = fn(db, uid, *params)
    File "/home/livetrunk/static/trunk/server/openerp/osv/osv.py", line 169, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "/home/livetrunk/static/trunk/server/openerp/osv/osv.py", line 123, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/livetrunk/static/trunk/server/openerp/osv/osv.py", line 179, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/livetrunk/static/trunk/server/openerp/addons/audittrail/audittrail.py", line 514, in execute_cr
      return fct_src(cr, uid, model, method, *args, **kw)
    File "/home/livetrunk/static/trunk/server/openerp/osv/osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/livetrunk/static/trunk/server/openerp/addons/sale_stock/sale_stock.py", line 65, in write
      return super(sale_order, self).write(cr, uid, ids, vals, context=context)
    File "/home/livetrunk/static/trunk/server/openerp/addons/sale_crm/sale_crm.py", line 45, in write
      return super(sale_order, self).write(cr, uid, ids, vals, context=context)
    File "/home/livetrunk/static/trunk/server/openerp/osv/orm.py", line 4145, in write
      result += self._columns[field].set(cr, self, id, field, vals[field], user, context=rel_context) or []
    File "/home/livetrunk/static/trunk/server/openerp/osv/fields.py", line 553, in set
      obj.unlink(cr, user, [act[1]], context=context)
    File "/home/livetrunk/static/trunk/server/openerp/addons/sale/sale.py", line 1010, in unlink
      return super(sale_order_line, self).unlink(cr, uid, ids, context=context)
    File "/home/livetrunk/static/trunk/server/openerp/osv/orm.py", line 3916, in unlink
      result_store = self._store_get_values(cr, uid, ids, self._all_columns.keys(), context)
    File "/home/livetrunk/static/trunk/server/openerp/osv/orm.py", line 4501, in _store_get_values
      target_ids = [id for id in function[id_mapping_fnct_](self, cr, SUPERUSER_ID, ids, context) if id]
    File "/home/livetrunk/static/trunk/server/openerp/addons/sale_margin/sale_margin.py", line 73, in _get_order
      return super(sale_order, self)._get_order(cr, uid, ids, context=context)
  TypeError: super(type, obj): obj must be an instance or subtype of type


  Thanks,
  Kettor

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


References