Latest Trunk: Create sales order.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 3 |
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/
return openerp.
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return fct_src(cr, uid, model, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
return super(sale_order, self).write(cr, uid, ids, vals, context=context)
File "/home/
return super(sale_order, self).write(cr, uid, ids, vals, context=context)
File "/home/
result += self._columns[
File "/home/
obj.unlink(cr, user, [act[1]], context=context)
File "/home/
return super(sale_
File "/home/
result_store = self._store_
File "/home/
target_ids = [id for id in function[
File "/home/
return super(sale_order, self)._
TypeError: super(type, obj): obj must be an instance or subtype of type
Thanks,
Kettor
Related branches
- Olivier Dony (Odoo): Approve
-
Diff: 22 lines (+5/-2)1 file modifiedsale_margin/sale_margin.py (+5/-2)
Changed in openobject-addons: | |
importance: | Undecided → Low |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
We confirm the error.
AFAIK, the method used within store, cannot use super().
Thanks.