OdooCommunityWidgets / install-scripts

Install Scripts for Odoo and Related Modules/Dependencies
MIT License
3 stars 14 forks source link

Error while installing Aeroo Direct Printing #3

Open mittel opened 9 years ago

mittel commented 9 years ago

I installed Odoo and Aeroo report on a fresh Ubuntu 14.040 server installation. Everything went fine, I updated the module list and installed Aeroo report with no error.

I only encountered an error while trying to install Aero Direct Printing

Traceback (most recent call last): File "/opt/odoo/odoo-server/openerp/http.py", line 536, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/opt/odoo/odoo-server/openerp/http.py", line 573, in dispatch result = self._call_function(_self.params) File "/opt/odoo/odoo-server/openerp/http.py", line 309, in _call_function return checked_call(self.db, args, _kwargs) File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper return f(dbname, _args, _kwargs) File "/opt/odoo/odoo-server/openerp/http.py", line 306, in checked_call return self.endpoint(_a, _kw) File "/opt/odoo/odoo-server/openerp/http.py", line 802, in call return self.method(_args, _kw) File "/opt/odoo/odoo-server/openerp/http.py", line 402, in response_wrap response = f(_args, _kw) File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 937, in call_kw return self._call_kw(model, method, args, kwargs) File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 929, in _call_kw return getattr(request.registry.get(model), method)(request.cr, request.uid, _args, _kwargs) File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper return old_api(self, _args, *_kwargs) File "/opt/odoo/custom/addons/report_aeroo_direct_print/installer.py", line 83, in default_get conn = cups.Connection() RuntimeError: failed to connect to server

By the way I am Fabrice from the Odoo community

lukebranch commented 9 years ago

@mittel ,

Thanks for your issue submission. So just to clarify with you the steps to reproduce this issue are as follows:

1) Install script with Aeroo Reports + Odoo installation 2) Create clean Odoo database 3) Install report_aeroo_direct_print module 4) Traceback error is shown as stated above

is that correct?

I'll try to reproduce the error on my end and will provide you with some configuration instructions from my end when I can find time.

The report_aeroo_direct_print module requires the installation and configuration of CUPS to connect with a printer on your local network. Do you have a network printer within the same network as the Odoo server?

mittel commented 9 years ago

1) Install script with Aeroo Reports + Odoo installation : YES 2) Create clean Odoo database : NO I upload my own database 3) Update module list 4) Install Aeroo report module 5) Install report_aeroo_direct_print module : YES 6) Traceback error is shown as stated above : YES

And yes I have a network printer

lukebranch commented 9 years ago

could you give me the IP address on your local network for the network printer along with the model?

I may need to see if I can find a suitable CUPS driver for you (Linux printer driver compatible with your model).

mittel commented 9 years ago

Sure IP : 192.168.2.43 HP Photosmart B110 series

But this is not so important, I just wanted to test this module, I can get pdf files and print them after saving them. Now I have to learn how to make Aeroo report ! Thank you again for your scripts! Very helpful.

lukebranch commented 9 years ago

@mittel ,

No problem. I would suggest leaving the aeroo_reports_direct_print module alone until i've had time to write a tutorial on the subject, as I have not actually started properly playing around with it yet. I believe there may be some slight bugs in that particular module due to API changes. These API changes will be fixed over time by PR's to the aeroo_reports repository here:

https://github.com/aeroo

The purpose of that module is only to provide an interface to CUPS which will allow you to print a document directly to a selected printer (eg. a barcode label printer) from an Odoo document screen (eg. print quotation from print dropdown menu in Odoo directly to printer rather than to PDF then to printer).

I'm not sure if you're on the community mailing lists, but I posted some instructions there recently. Send me your email to odoocommunitywidgets@gmail.com and i'll forward a copy with a demo/template file for your reference to get you started.

mittel commented 9 years ago

OK I just sent you my email

lukebranch commented 9 years ago

@mittel ,

I've forwarded it over to you.

mittel commented 9 years ago

got it

lukebranch commented 9 years ago

@mittel ,

If you run into have questions about building reports in Aeroo please post to this forum thread:

https://www.odoo.com/forum/help-1/question/8-0-how-to-build-a-report-in-aeroo-reports-85994

I've started a thread where I will eventually post a detailed tutorial on building reports in Aeroo.

In the meantime I will leave this github issue open until we've figured out the error message from aeroo_reports_direct_print that you mentioned above.

mittel commented 9 years ago

ok thanks

Fenibi commented 8 years ago

@lukebranch Did you find a solution of this?