コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4 返信
8438 ビュー

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

アバター
破棄
最善の回答

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.

アバター
破棄
著作者 最善の回答

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

最善の回答

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

please help me

アバター
破棄
最善の回答

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

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

アバター
破棄
関連投稿 返信 ビュー 活動
3
3月 15
8716
0
3月 15
7677
0
3月 15
3405
2
3月 15
7158
2
12月 24
1117