Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
10720 Переглядів

Hello,

I wish to build a small client on a mini PC that will print delivery notes automatically in our warehouse for the packing crew.

This requires me to be able to run QWeb reports programmatically. Being able to call reports via XML-RPC or URL will suffice but it appears Odoo 11 has changed and there is no documentation to provide new examples.

XML-RPC

https://www.odoo.com/documentation/11.0/webservices/odoo.html#report-printing

Out of datehttps://github.com/odoo/odoo/issues/22540 this coincides with my own errors

URL

https://www.odoo.com/documentation/11.0/reference/reports.html#reports-are-web-pages

This no longer works as report has merged into web. Replacing report with web in URL did not appear to work

A simple example of how one can retrieve a report would be enormously helpful to me and likely many others

An example of my efforts:

self._models.execute_kw(self.db, self._uid, self.password,

                                "ir.actions.report", "render_qweb_pdf", [report_id, product_id])


This simply spits out a "xml.parsers.expat.ExpatError: not well-formed (invalid token)"

An example or link to a working snippet would be greatly appreciated!

Regards,


Sam




Аватар
Відмінити

Same problem here...

Найкраща відповідь

Hello,

Have you found a solution?


Thanks in advance

Аватар
Відмінити
Найкраща відповідь

Hi there

has anyone a solution for odoo11 to call a report from website ?

Thanks,

Franz

Аватар
Відмінити
Найкраща відповідь

Same problem here...

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
трав. 25
11374
5
вер. 19
8350
2
вер. 24
1943
3
січ. 23
7647
1
бер. 22
5474