Public bug reported: 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/openeyedev/bzr/oe70/ocb-server/7.0/openerp/netsvc.py", line 296, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/osv.py", line 190, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, *args, **kwargs) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/openeyedev/var/projects/oe_bisdom_breda_70/addons/account/account_invoice.py", line 1821, in copy return super(res_partner, self).copy(cr, uid, id, default, context) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/addons/base/res/res_partner.py", line 341, in copy return super(res_partner, self).copy(cr, uid, id, default, context) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 5125, in copy self.copy_translations(cr, uid, id, new_id, context) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 5069, in copy_translations old_children = sorted(r.id for r in old_record[field_name]) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 474, in __getitem__ context=self._context) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 305, in __init__ super(browse_record_list, self).__init__(lst) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 473, in <genexpr> for id in result_line[field_name]), File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 354, in __init__ if id not in self._data: TypeError: unhashable type: 'dict' ** Affects: ocb-server Importance: Medium Status: New ** Affects: ocb-server/7.0 Importance: Medium Status: New ** Affects: openobject-server Importance: Undecided Status: New ** Also affects: ocb-server Importance: Undecided Status: New ** Changed in: ocb-server Importance: Undecided => Medium ** Also affects: ocb-server/7.0 Importance: Medium Status: New -- You received this bug notification because you are a member of OpenERP Community Backports, which is subscribed to OpenERP Community Backports (Server). https://bugs.launchpad.net/bugs/1321675 Title: Server crash when copying one2many function field Status in OpenERP Community Backports (Server): New Status in OpenERP Community Backports (Server) 7.0 series: New Status in OpenERP Server: New 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/openeyedev/bzr/oe70/ocb-server/7.0/openerp/netsvc.py", line 296, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/osv.py", line 190, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, *args, **kwargs) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/openeyedev/var/projects/oe_bisdom_breda_70/addons/account/account_invoice.py", line 1821, in copy return super(res_partner, self).copy(cr, uid, id, default, context) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/addons/base/res/res_partner.py", line 341, in copy return super(res_partner, self).copy(cr, uid, id, default, context) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 5125, in copy self.copy_translations(cr, uid, id, new_id, context) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 5069, in copy_translations old_children = sorted(r.id for r in old_record[field_name]) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 474, in __getitem__ context=self._context) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 305, in __init__ super(browse_record_list, self).__init__(lst) File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 473, in <genexpr> for id in result_line[field_name]), File "/home/openeyedev/bzr/oe70/ocb-server/7.0/openerp/osv/orm.py", line 354, in __init__ if id not in self._data: TypeError: unhashable type: 'dict' To manage notifications about this bug go to: https://bugs.launchpad.net/ocb-server/+bug/1321675/+subscriptions -- Mailing list: https://launchpad.net/~openerp-community-reviewer Post to : openerp-community-reviewer@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-community-reviewer More help : https://help.launchpad.net/ListHelp