Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while installing Aeroo Direct Printing #3

Open
mittel opened this issue May 28, 2015 · 11 comments
Open

Error while installing Aeroo Direct Printing #3

mittel opened this issue May 28, 2015 · 11 comments

Comments

@mittel
Copy link

mittel commented May 28, 2015

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
Copy link
Contributor

@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
Copy link
Author

mittel commented May 28, 2015

  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
Copy link
Contributor

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
Copy link
Author

mittel commented May 28, 2015

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
Copy link
Contributor

@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 [email protected] and i'll forward a copy with a demo/template file for your reference to get you started.

@mittel
Copy link
Author

mittel commented May 28, 2015

OK
I just sent you my email

@lukebranch
Copy link
Contributor

@mittel ,

I've forwarded it over to you.

@mittel
Copy link
Author

mittel commented May 28, 2015

got it

@lukebranch
Copy link
Contributor

@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
Copy link
Author

mittel commented May 28, 2015

ok thanks

@lukebranch lukebranch changed the title Error while installing Aero Direct Printing Error while installing Aeroo Direct Printing Jun 1, 2015
@Fenibi
Copy link

Fenibi commented Feb 2, 2016

@lukebranch Did you find a solution of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants