Reviewers: ,


Please review this at http://codereview.tryton.org/340005/

Affected files:
  M trytond/model/modelsql.py


Index: trytond/model/modelsql.py
===================================================================
--- a/trytond/model/modelsql.py
+++ b/trytond/model/modelsql.py
@@ -2035,8 +2035,8 @@
                         'order': otype,
                         })
                 else:
- order_by.append('"' + table_name + '".' + field_name + \
-                            ' ' + otype)
+                    order_by.append('"%s"."%s" %s'
+                        % (table_name, field_name, otype))
                 return order_by, tables, tables_args

         if field in self._inherit_fields.keys():


--
[email protected] mailing list

Reply via email to