Odoo Help
Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM
|
e-Commerce
|
Accounting
|
Inventory
|
PoS
|
Project management
|
MRP
|
etc.
Solved-QWebException: "coercing to Unicode: need string or buffer, int found" while evaluating
I have a problem in my code :
where week_day ,name are chars and exam_date is date but sasa_zozo and teacher_ids are intgers
when i try to print a report it gives me error
def exam_day_date (self,day_id_date): id_date= [] self._cr.execute( """select week_day,exam_date ,s.name,t.sasa_zozo,y.teacher_ids from fci_exam_time_table_line, fci_subject s ,rel_sa t,lgna_teacher y where exam_id = %d group by week_day,exam_date ,s.name,t.sasa_zozo,y.teacher_ids order by exam_date """ % ( day_id_date)) res = self._cr.dictfetchall() self._cr.execute( """select week_day,exam_date ,s.name,t.sasa_zozo,y.teacher_ids from fci_exam_time_table_line, fci_subject s ,rel_sa t,lgna_teacher y where exam_id = %d group by week_day,exam_date ,s.name,t.sasa_zozo,y.teacher_ids order by exam_date """ % ( day_id_date)) time_data = self._cr.dictfetchall() for time_detail in time_data: for data in res: time_detail[data['week_day']] = '('+data['week_day']+')\n'+data['exam_date']+'\n('+data['name']+')'+data['sasa_zozo']+data['teacher_ids'] id_date.append(time_detail) print (id_date) return id_date |
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
RegisterOdoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it nowQuestion tools
Stats
Asked: 4/4/15, 8:53 PM |
Seen: 1401 times |
Last updated: 4/5/15, 5:25 PM |