[IMP] hr_timesheet: uncommit the changes made for Bug #695960
bzr revid: mtr@mtr-20110117051337-9ge2j1n6waoodvqm
This commit is contained in:
parent
d228c2e218
commit
d24d1f6a45
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue