[tryton-debian-vcs] tryton-modules-timesheet branch upstream-1.6 created. 7402d41bb3982338d10d19a18143b72cc418fbb0

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Wed Nov 27 17:12:44 UTC 2013


The following commit has been merged in the upstream-1.6 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-timesheet.git;a=commitdiff;h=7402d41bb3982338d10d19a18143b72cc418fbb0
commit 7402d41bb3982338d10d19a18143b72cc418fbb0
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Sat Nov 20 20:50:12 2010 +0100

    Adding upstream version 1.6.1.

diff --git a/CHANGELOG b/CHANGELOG
index 539164d..7b8f0ad 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 1.6.1 - 2010-11-02
+* Bug fixes (see mercurial logs for details)
+
 Version 1.6.0 - 2010-05-12
 * Bug fixes (see mercurial logs for details)
 
diff --git a/PKG-INFO b/PKG-INFO
index b1c0473..bef762b 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: trytond_timesheet
-Version: 1.6.0
+Version: 1.6.1
 Summary: Timesheet Module with:
     - Work
     - Timesheet line
diff --git a/__tryton__.py b/__tryton__.py
index b405171..61855eb 100644
--- a/__tryton__.py
+++ b/__tryton__.py
@@ -6,7 +6,7 @@
     'name_es_CO': 'Hoja de Asistencia',
     'name_es_ES': 'Partes de trabajo',
     'name_fr_FR': 'Feuille de présence',
-    'version': '1.6.0',
+    'version': '1.6.1',
     'author': 'B2CK',
     'email': 'info at b2ck.com',
     'website': 'http://www.tryton.org/',
diff --git a/line.py b/line.py
index 99fb530..614b1f4 100644
--- a/line.py
+++ b/line.py
@@ -149,7 +149,7 @@ class HoursEmployee(ModelSQL, ModelView):
         if context is None:
             context = {}
         clause = ' '
-        args = []
+        args = [True]
         if context.get('start_date'):
             clause += 'AND date >= %s '
             args.append(context['start_date'])
@@ -164,7 +164,7 @@ class HoursEmployee(ModelSQL, ModelView):
                     'employee, ' \
                     'SUM(COALESCE(hours, 0)) AS hours ' \
                 'FROM timesheet_line ' \
-                'WHERE True ' \
+                'WHERE %s ' \
                 + clause + \
                 'GROUP BY employee', args)
 
@@ -238,7 +238,8 @@ class HoursEmployeeWeekly(ModelSQL, ModelView):
     def table_query(self, context=None):
         type_name = FIELDS[self.year._type].sql_type(self.year)[0]
         return ('SELECT id, create_uid, create_date, write_uid, write_date, ' \
-                    'CAST(year AS ' + type_name + '), week, employee, hours ' \
+                    'CAST(year AS ' + type_name + ') AS year, week, ' \
+                    'employee, hours ' \
                     'FROM ('
                         'SELECT EXTRACT(WEEK FROM date) + ' \
                             'EXTRACT(YEAR FROM date) * 100 + ' \
@@ -275,7 +276,8 @@ class HoursEmployeeMonthly(ModelSQL, ModelView):
     def table_query(self, context=None):
         type_name = FIELDS[self.year._type].sql_type(self.year)[0]
         return ('SELECT id, create_uid, create_date, write_uid, write_date, ' \
-                    'CAST(year AS ' + type_name + '), month, employee, hours ' \
+                    'CAST(year AS ' + type_name + ') AS year, month, ' \
+                    'employee, hours ' \
                     'FROM ('
                         'SELECT EXTRACT(MONTH FROM date) + ' \
                             'EXTRACT(YEAR FROM date) * 100 + ' \
diff --git a/trytond_timesheet.egg-info/PKG-INFO b/trytond_timesheet.egg-info/PKG-INFO
index 63d0f5b..7e0c71c 100644
--- a/trytond_timesheet.egg-info/PKG-INFO
+++ b/trytond_timesheet.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.0
 Name: trytond-timesheet
-Version: 1.6.0
+Version: 1.6.1
 Summary: Timesheet Module with:
     - Work
     - Timesheet line
-- 
tryton-modules-timesheet



More information about the tryton-debian-vcs mailing list