[FIX] fields.many2many : Always respect destination table order
bzr revid: tfr@openerp.com-20120619151651-fokfu5gkfk3qfhxs
This commit is contained in:
parent
5973022a95
commit
cd3879f107
|
@ -716,10 +716,7 @@ class many2many(_column):
|
||||||
if where_c:
|
if where_c:
|
||||||
where_c = ' AND ' + where_c
|
where_c = ' AND ' + where_c
|
||||||
|
|
||||||
if offset or self._limit:
|
order_by = ' ORDER BY "%s".%s' %(obj._table, obj._order.split(',')[0])
|
||||||
order_by = ' ORDER BY "%s".%s' %(obj._table, obj._order.split(',')[0])
|
|
||||||
else:
|
|
||||||
order_by = ''
|
|
||||||
|
|
||||||
limit_str = ''
|
limit_str = ''
|
||||||
if self._limit is not None:
|
if self._limit is not None:
|
||||||
|
|
Loading…
Reference in New Issue