Comment 4 for bug 985329

Revision history for this message
Ray Carnes (rcarnes) wrote :

We have been given the following patch, which works for us:

=== modified file 'openerp/osv/orm.py'
--- openerp/osv/orm.py 2012-08-26 20:26:55 +0000
+++ openerp/osv/orm.py 2012-08-28 11:38:10 +0000
@@ -1124,7 +1124,10 @@
                     elif f[i] == 'id':
                         r = _get_xml_id(self, cr, uid, r)
                     else:
- r = r[f[i]]
+ if f[i].startswith('in_group_') or f[i].startswith('in_groups_') or f[i].startswith('sel_groups_'):
+ r = self.read(cr, uid, row.id, [f[i]], context)[f[i]]
+ else:
+ r = r[f[i]]
                         # To display external name of selection field when its exported
                         if f[i] in self._columns.keys():
                             cols = self._columns[f[i]]