Server crash when copying one2many function field
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned | |||
OpenERP Community Backports (Server) | Status tracked in 7.0 | |||||
7.0 |
New
|
Medium
|
Unassigned |
Bug Description
Server crashes when copying the translations of a record that contains a - not stored - one2many function field.
These fields should not have translations copied.
Traceback (most recent call last):
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 getattr(object, method)(cr, uid, *args, **kw)
File "/home/
return super(res_partner, self).copy(cr, uid, id, default, context)
File "/home/
return super(res_partner, self).copy(cr, uid, id, default, context)
File "/home/
self.
File "/home/
old_children = sorted(r.id for r in old_record[
File "/home/
context=
File "/home/
super(
File "/home/
for id in result_
File "/home/
if id not in self._data:
TypeError: unhashable type: 'dict'
Related branches
- Holger Brunn (Therp): Disapprove
-
Diff: 31 lines (+14/-7)1 file modifiedopenerp/osv/orm.py (+14/-7)
- OpenERP Core Team: Pending requested
-
Diff: 31 lines (+14/-7)1 file modifiedopenerp/osv/orm.py (+14/-7)
Changed in ocb-server: | |
importance: | Undecided → Medium |
Hi Ronald /bugs.launchpad .net/openobject -server/ +bug/705364
I did get the time to take a look to your problem but it remind me an old one under 5 version : https:/
Maybe it can help you.