Odoo Help


How to repair print button in invoice view?

Pascal Tremblay
on 12/15/14, 1:17 PM 2,226 views

Hello there,

From here, if I click the grey Print button, I can get my invoice in PDF.

But if I click the red Print button, I get this error :

Odoo Server Error

Traceback (most recent call last): File "/home/odoo/openerp/http.py", line 518, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/home/odoo/openerp/http.py", line 539, in dispatch result = self._call_function(**self.params) File "/home/odoo/openerp/http.py", line 295, in _call_function return checked_call(self.db, *args, **kwargs) File "/home/odoo/openerp/service/model.py", line 113, in wrapper return f(dbname, *args, **kwargs) File "/home/odoo/openerp/http.py", line 292, in checked_call return self.endpoint(*a, **kw) File "/home/odoo/openerp/http.py", line 755, in __call__ return self.method(*args, **kw) File "/home/odoo/openerp/http.py", line 388, in response_wrap response = f(*args, **kw) File "/home/odoo/addons/web/controllers/main.py", line 953, in call_button action = self._call_kw(model, method, args, {}) File "/home/odoo/addons/web/controllers/main.py", line 941, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs) File "/home/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/openerp/api.py", line 360, in old_api result = method(recs, *args, **kwargs) File "/home/odoo/addons/account/account_invoice.py", line 383, in invoice_print return self.env['report'].get_action(self, 'account.report_invoice') File "/home/odoo/openerp/api.py", line 235, in wrapper return new_api(self, *args, **kwargs) File "/home/odoo/openerp/api.py", line 552, in new_api result = method(self._model, cr, uid, self.ids, *args, **kwargs) File "/home/odoo/addons/report_aeroo/report.py", line 41, in get_action replacing_report = self._get_replacing_report(cr, report_name) File "/home/odoo/openerp/api.py", line 237, in wrapper return old_api(self, *args, **kwargs) File "/home/odoo/addons/report_aeroo/report.py", line 33, in _get_replacing_report where report_org.report_name=%s''', (report_name,)) File "/home/odoo/openerp/sql_db.py", line 158, in wrapper return f(self, *args, **kwargs) File "/home/odoo/openerp/sql_db.py", line 234, in execute res = self._obj.execute(query, params) ProgrammingError: can't adapt type 'account.invoice'

Idea? Thanks


This problem is not solved. We are searching for a solution.

Pascal Tremblay
on 12/19/14, 4:04 PM

It works now!

Pascal Tremblay
on 12/22/14, 7:03 AM

Jagdish Panchal

--Jagdish Panchal--

| 5 4 6
Gandhinagar, India
--Jagdish Panchal--

OpenERP Developer

Jagdish Panchal
On 12/20/14, 3:24 AM

Hello Pascal Tremblay,

I have check with latest odoo code its working fine. Please take lates odoo code and check.



@Pascal Tremblay : Take odoo latetest code from odoo repository and then update your module.

Jagdish Panchal
on 12/22/14, 1:51 AM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 12/15/14, 1:17 PM
Seen: 2226 times
Last updated: 3/16/15, 8:10 AM