Help

Error while printing pdf

Closed
Avatar
Muhammed Nishad

The question has been closed for reason: not relevant or out dated

by
Muhammed Nishad
on 04/09/2019 01:07:17

I was trying to create a Qweb PDF Report.So I created a template and in order to test it i tried just to print the headears only.

here is my template page.

<odoo>
<template id="projection_report_template">
<t t-call="web.html_container">
<!--<t t-foreach="docs" t-as="doc">-->
<t t-call="web.external_layout">
<div class="page">
<div class="oe_structure"/>
<h1><center>Employee Vice Achievement</center></h1>
<table >
<tr>
<th style="width:15px; text-align:center;"><strong>Date</strong></th>
<th style="width:15px; text-align:center;"><strong>Employee</strong></th>
<th class="text-center" style="width:25px"><strong>Projection</strong></th>
<th class="text-center" style="width:25px"><strong>Achievement</strong></th>
<th class="text-center" style="width:20px"><strong>Difference</strong></th>
</tr>
</table>

</div>
</t>
<!--</t>-->
</t>
</template>
</odoo>

when i gave print , this error popped up


Error:

Odoo Server ErrorTraceback (most recent call last):  File "/home/c/muhammednishad/odoo/odoo-11.0.post20180606/odoo/addons/web/controllers/main.py", line 1619, in report_download    response = self.report_routes(reportname, converter='pdf', **dict(data))  File "/home/c/muhammednishad/odoo/odoo-11.0.post20180606/odoo/http.py", line 515, in response_wrap    response = f(*args, **kw)  File "/home/c/muhammednishad/odoo/odoo-11.0.post20180606/odoo/addons/web/controllers/main.py", line 1564, in report_routes    pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]  File "/home/c/muhammednishad/odoo/odoo-11.0.post20180606/odoo/addons/base/ir/ir_actions_report.py", line 624, in render_qweb_pdf    html = self.with_context(context).render_qweb_html(res_ids, data=data)[0]  File "/home/c/muhammednishad/odoo/odoo-11.0.post20180606/odoo/addons/base/ir/ir_actions_report.py", line 662, in render_qweb_html    return self.render_template(self.report_name, data), 'html'  File "/home/c/muhammednishad/odoo/odoo-11.0.post20180606/odoo/addons/base/ir/ir_actions_report.py", line 468, in render_template    web_base_url=self.env['ir.config_parameter'].sudo().get_param('web.base.url', default=''),TypeError: update() got an unexpected keyword argument 'time'
Avatar
Discard
1 Answer
0
Best Answer

Hello @Muhammed Nishad,

1. First i would suggest you to have the latest Pull of Odoo V11.

2. Have you given the Refernce Id "projection_report_template to file parameter of Report tag.

3. If it doesnt work then can you please share the Full Error so i can have a better Idea.

Can you Please mark this as Resolved if you are satisfied with my answer.

Avatar
Discard