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.

0

How to resolve the Attach pdf error when installing Document addon ?

By
massimo
on 2/6/13, 10:00 AM 2,709 views

Hi, i've install a document management system module for attach a file in OperERP 7. When i try attach word, text or excel file and it works fine, but when i try to attach pdf file occours an error.

who can help me?

Thanks

This is the error:

OpenERP Server Error Client Traceback (most recent call last): File "/home/openerp/openerp7/openerp/addons/web/http.py", line 195, in dispatch response["result"] = method(self, *self.params) File "/home/openerp/openerp7/openerp/addons/web/controllers/main.py", line 1078, in call_kw return self._call_kw(req, model, method, args, kwargs) File "/home/openerp/openerp7/openerp/addons/web/controllers/main.py", line 1070, in _call_kw return getattr(req.session.model(model), method)(args, **kwargs) File "/home/openerp/openerp7/openerp/addons/web/session.py", line 43, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/home/openerp/openerp7/openerp/addons/web/session.py", line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File "/home/openerp/openerp7/openerp/addons/web/session.py", line 104, in send raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)

Server Traceback (most recent call last): File "/home/openerp/openerp7/openerp/addons/web/session.py", line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/openerp/openerp7/openerp/netsvc.py", line 289, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/openerp/openerp7/openerp/service/web_services.py", line 614, in dispatch res = fn(db, uid, params) File "/home/openerp/openerp7/openerp/osv/osv.py", line 169, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/home/openerp/openerp7/openerp/osv/osv.py", line 123, in wrapper return f(self, dbname, args, *kwargs) File "/home/openerp/openerp7/openerp/osv/osv.py", line 179, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/home/openerp/openerp7/openerp/osv/osv.py", line 166, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/home/openerp/openerp7/openerp/addons/document/document.py", line 121, in create vals['file_type'], vals['index_content'] = self._index(cr, uid, vals['datas'].decode('base64'), vals.get('datas_fname', False), None) File "/home/openerp/openerp7/openerp/addons/document/document.py", line 132, in _index mime, icont = cntIndex.doIndex(data, datas_fname, file_type or None, None) TypeError: 'NoneType' object is not iterable

3

Davide Corio

--Davide Corio--
1822
| 4 3 7
Bricherasio, Italy
--Davide Corio--

Odoo Evangelist and Consultant

Davide Corio
On 2/6/13, 10:42 AM

If you're on Ubuntu/Debian try to install poppler-utils (apt-get install poppler-utils).

On other gnu/linux distros the name of the package is probably the same.

Then you'll have to restart OpenERP before the changes to take effect.

0
rania
On 3/8/13, 4:08 AM

I work with windows 7 and i have the same error, please what is the package to install on windows 7

please help me

0
massimo
On 2/12/13, 4:53 AM

Thank you very much! It's work fine!

Can you check the small green button left of the ansmwer if it is ok for you ? Only moderators and asker can do this :)

Tuxservices, Jeudy Nicolas
on 2/12/13, 6:54 AM
0

Andreas Brueckl

--Andreas Brueckl--
5056
| 7 8 7
Vienna, Austria
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
On 3/8/13, 5:09 AM

If you are using Windows, please see the following question:

https://accounts.openerp.com/forum/Help-1/question/4891#4897

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: 2/6/13, 10:00 AM
Seen: 2709 times
Last updated: 3/16/15, 8:10 AM