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

How to repair print button in invoice view?

By
Pascal Tremblay
on 12/15/14, 1:17 PM 1,554 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
1

Jagdish Panchal

--Jagdish Panchal--
2674
| 5 3 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.

Thanks

 

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

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

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

2 follower(s)

Stats

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