From 7cdc2697f7bb8df3bb16e2d74e70a527880b8997 Mon Sep 17 00:00:00 2001
From: bch <>
Date: Wed, 25 Apr 2007 12:37:56 +0000
Subject: [PATCH] hr_timesheet_sheet: gui improvement : new button and other
button moved
bzr revid: bch-c8e404f61a3a09c6925a0db0c2fffd0f757eeb3f
---
.../hr_timesheet_sheet/hr_timesheet_sheet.py | 4 ++-
.../hr_timesheet_sheet_view.xml | 31 ++++++++++++-------
2 files changed, 22 insertions(+), 13 deletions(-)
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
index e4ac10377f2..0e3eaed8e22 100644
--- a/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
+++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet.py
@@ -187,7 +187,9 @@ class hr_timesheet_sheet(osv.osv):
'date_current': (DateTime.strptime(sheet.date_current, '%Y-%m-%d') + DateTime.RelativeDateTime(days=1)).strftime('%Y-%m-%d'),
})
return True
-
+ def button_dummy(self, cr, uid, ids, context):
+ return True
+
def sign_in(self, cr, uid, ids, context):
if not self.browse(cr, uid, ids, context)[0].date_current == time.strftime('%Y-%m-%d'):
raise osv.except_osv('Error !', 'You can not sign in from an other date than today')
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
index d168d0c1485..74ad307e1a2 100644
--- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
+++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml
@@ -49,21 +49,28 @@
-
+
+
+
-
+
-
-
-
+
+
+
+
+
+
+
+
@@ -84,13 +91,6 @@
-
-
-
-
-
-
-
@@ -113,6 +113,13 @@
+
+
+
+
+
+
+