hr_timesheet_invoice: invoice_create, sort by date of analytic_line
authorPeter Niederlag <netservice@niekom.de>
Mon, 14 Jun 2010 13:06:08 +0000 (15:06 +0200)
committerPeter Niederlag <netservice@niekom.de>
Mon, 14 Jun 2010 13:06:08 +0000 (15:06 +0200)
bzr revid: netservice@niekom.de-20100614130608-wm81rj0lv0oh8q12

addons/hr_timesheet_invoice/wizard/hr_timesheet_invoice_create.py

index 4585d07..e255373 100644 (file)
@@ -148,7 +148,8 @@ class invoice_create(wizard.interface):
                            " WHERE account_id=%s"
                            "   AND id IN %s"
                            "   AND product_id=%s"
-                           "   AND to_invoice=%s",
+                           "   AND to_invoice=%s"
+                           " ORDER BY account_analytic_line.date",
                            (account.id, tuple(data['ids']), product_id, factor_id))
                 line_ids = cr.dictfetchall()
                 note = []