I updated the code but it generate error in calling `gen_student_attendance_report` function in ther report
Hint : if i remove the table of `gen_student_attendance_report` function the report print successfully
Here is my error :
|except_orm: (u'"gen_student_attendance_report() got multiple values for keyword argument \'context\'" while evaluating\n\'o.gen_student_attendance_report(o.id)\'', (<class 'openerp.addons.base.ir.ir_qweb.QWebException'>, QWebException(ValueError(u'"gen_student_attendance_report() got multiple values for keyword argument \'context\'" while evaluating\n\'o.gen_student_attendance_report(o.id)\'',),), <traceback object at 0x7f3478bd0a28>)) |
Here is my python code :
from openerp.osv import osv,fields
here is my wizard code :
<?xml version="1.0" encoding="UTF-8"?>
and here is my report.xml :
and here is my report tag :
i Hope i find some help :(
Hello John carter,
I faced the same issue before, even I asked that question already.
If you are using parser, for report than it create problem, because it passing wrong doc model.
To get exact model you have to override one method and have to expclitly pass few arguments for for qweb report. Click below link for more information.
Hope this will helps.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/8/15, 8:42 PM|
|Seen: 1800 times|
|Last updated: 4/10/15, 10:45 PM|