Odoo Help


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

on 2/6/13, 10:00 AM 3,483 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?


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


Davide Corio

--Davide Corio--

| 5 4 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.

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
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


Andreas Brueckl

--Andreas Brueckl--

| 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:


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