Advertisement
Guest User

Untitled

a guest
Jan 8th, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. diff -r fc5080f35a0b trytond/model/modelsql.py
  2. --- a/trytond/model/modelsql.py Sat Dec 20 19:24:42 2014 +0100
  3. +++ b/trytond/model/modelsql.py Thu Jan 08 12:11:53 2015 +0100
  4. @@ -1036,6 +1036,9 @@
  5. main_table.write_date,
  6. main_table.create_date).as_('_datetime'))
  7. columns.append(Column(main_table, '__id'))
  8. + order_by.append(Desc(Coalesce(
  9. + main_table.write_date,
  10. + main_table.create_date).as_('_datetime')))
  11. if not query:
  12. columns += [f.sql_column(main_table).as_(n)
  13. for n, f in cls._fields.iteritems()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement