Odoo Help

Welcome!

This community 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.

1

WKHTMLTOPDF in OpenSUSE

By
Javier Batres Velásquez
on 1/16/15, 4:05 PM 1,784 views

Hello I am starting with Odoo on the development area. I was folloeing the tutorial "build a module" and right now I am trying to print a report. ( https://www.odoo.com/documentation/8.0/howtos/backend.html#reporting ) I have copied the XML nad set the vieew on the __openerp__.py file but when i Execute the report on the application I get the errors:

 

Traceback (most recent call last): File "/Datos/odoo/addons/report/controllers/main.py", line 121, in report_download response = self.report_routes(reportname, docids=docids, converter='pdf') File "/Datos/odoo/openerp/http.py", line 394, in response_wrap response = f(*args, **kw) File "/Datos/odoo/addons/report/controllers/main.py", line 65, in report_routes pdf = report_obj.get_pdf(cr, uid, docids, reportname, data=options_data, context=context) File "/Datos/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/Datos/odoo/addons/report/models/report.py", line 186, in get_pdf html = self.get_html(cr, uid, ids, report_name, data=data, context=context) File "/Datos/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/Datos/odoo/addons/report/models/report.py", line 171, in get_html return self.render(cr, uid, [], report.report_name, docargs, context=context) File "/Datos/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/Datos/odoo/addons/report/models/report.py", line 147, in render return view_obj.render(cr, uid, template, values, context=context) File "/Datos/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/Datos/odoo/addons/website/models/ir_ui_view.py", line 172, in render return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context) File "/Datos/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/Datos/odoo/openerp/addons/base/ir/ir_ui_view.py", line 1014, in render return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context) File "/Datos/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 253, in render return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 426, in render_tag_call d[0] = self.render_element(element, template_attributes, generated_attributes, d) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 416, in render_tag_foreach ru.append(self.render_element(element, template_attributes, generated_attributes, copy_qwebcontext)) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 426, in render_tag_call d[0] = self.render_element(element, template_attributes, generated_attributes, d) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 294, in render_node result = self.render_element(element, template_attributes, generated_attributes, qwebcontext) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 320, in render_element raise_qweb_exception(message="Could not render element %r" % element.tag, node=element, template=template) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element g_inner.append(self.render_node(current_node, qwebcontext)) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext) File "/Datos/odoo/openerp/addons/base/ir/ir_qweb.py", line 473, in render_tag_field field = record._fields[field_name] QWebException: 'end_date'

 

I will be really happy and thanksfull if someone here can give me a hand

0

Gracias, te cuento que es en OpenSUSE 13.2 , lo que lo soluciono fue instalar la versión de publishing que se encuentra en la pagina de software.opensuse.org, con la opción de 1 install.

Al hacer esto lo reconocio con la versión 0.12.*

 

Muchas gracias Miguel.

 

Igualmente soy de Guate.

0
JAINIK PATEL
On 1/27/15, 6:19 AM

You Can Install WKHTMLTOPDF module throw synaptic Package Manager Or Vi Ubuntu Software Center Then Search Bar Type WKHTMLTOPDF and install the after reun your problem is sloved

0
Miguel Chuga
On 1/20/15, 9:45 PM

bajate http://wkhtmltopdf.org/downloads.html

agregar este repo http://download.opensuse.org/repositories/home:/derselbst/openSUSE_13.1/

e instalar

zypper install --type pattern devel_basis
zypper in xorg-x11 xorg-x11-server xorg-x11-essentials
zypper in libopenssl-devel

luego solo copias en wkhtmltopdf a /usr/bin/

pd. soy de Guate

 

 

 

Hola Miguel, perdona. Podrias darme tu correo solo para una consulta de los formatos contables en Guatemala. Gracias

Javier Batres Velásquez
on 3/9/15, 11:59 AM

El 9 de marzo de 2015, 9:59, Javier Batres Velásquez <javierhabieru@gmail.com> escribió:

Hola Miguel, perdona. Podrias darme tu correo solo para una consulta de los formatos contables en Guatemala. Gracias

--
Javier Batres Velásquez
Sent by Odoo S.A. using Odoo about Forum Post WKHTMLTOPDF in OpenSUSE (73684)

Miguel Chuga
on 3/9/15, 12:16 PM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/16/15, 4:05 PM
Seen: 1784 times
Last updated: 1/6/16, 4:45 PM