Odoo Help


4 Answers
Luca Vercelli Italy
10/17/17, 12:02 PM

Just two years late, I have an answer for this.

The point is not only to install python module, but also to let Odoo know about it.

I have downloaded pypiwin32 (i.e. the pip version of pywin32), and I have copied \win32 under the \server folder of Odoo.

Now I can see \server\win32\win32print.pyd (among many other files)

Odoo searches modules in \server, not in \server\win32, so it cannot find that.

I don't know what is the correct way to add a sys.path in Odoo, anyway, the following works:

import sys
FOLDER = 'C:\\Program Files (x86)\\Odoo 10.0\\server\\win32' # or wherever you installed it
if not FOLDER in sys.path: 
    sys.path.append(FOLDER) import win32print
1 Comment
Billiard R Made South Africa
10/17/17, 4:29 PM

Thanx, I wish I had enough karma to vote

Ask a Question
Keep Informed
1 follower(s)
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