[IMP] hr_timesheet: uncommit the changes made for Bug #695960

bzr revid: mtr@mtr-20110117051337-9ge2j1n6waoodvqm
This commit is contained in:
mtr 2011-01-17 10:43:37 +05:30
parent d228c2e218
commit d24d1f6a45
2 changed files with 0 additions and 6 deletions

View File

@ -27,7 +27,6 @@ from tools.translate import _
import time
import pooler
from report import report_sxw
import unicodedata
def lengthmonth(year, month):
if month == 2 and ((year % 4 == 0) and ((year % 100 != 0) or (year % 400 == 0))):
@ -50,8 +49,6 @@ class report_custom(report_rml):
emp_obj = pooler.get_pool(cr.dbname).get('hr.employee')
user_id = emp_obj.browse(cr, uid, emp_id).user_id.id
empl_name = emp_obj.browse(cr, uid, emp_id).name
if isinstance(empl_name,unicode):
empl_name = (unicodedata.normalize('NFKD', unicode(empl_name)).encode('ASCII', 'ignore'))
# Computing the dates (start of month: som, and end of month: eom)

View File

@ -26,7 +26,6 @@ import time
import pooler
from tools.translate import _
from report import report_sxw
import unicodedata
def lengthmonth(year, month):
@ -92,8 +91,6 @@ class report_custom(report_rml):
for id in data['form']['employee_ids']:
user = emp_obj.browse(cr, uid, id).user_id.id
empl_name = emp_obj.browse(cr, uid, id).name
if isinstance(empl_name,unicode):
empl_name = (unicodedata.normalize('NFKD', unicode(empl_name)).encode('ASCII', 'ignore'))
if user:
emp_xml += emp_create_xml(cr, user, som, eom, empl_name)