[FIX] fields.many2many : Always respect destination table order

bzr revid: tfr@openerp.com-20120619151651-fokfu5gkfk3qfhxs
This commit is contained in:
tfr@openerp.com 2012-06-19 17:16:51 +02:00
parent 5973022a95
commit cd3879f107
1 changed files with 1 additions and 4 deletions

View File

@ -716,10 +716,7 @@ class many2many(_column):
if where_c:
where_c = ' AND ' + where_c
if offset or self._limit:
order_by = ' ORDER BY "%s".%s' %(obj._table, obj._order.split(',')[0])
else:
order_by = ''
order_by = ' ORDER BY "%s".%s' %(obj._table, obj._order.split(',')[0])
limit_str = ''
if self._limit is not None: