barsi / openerp-rtl

OpenERP Arabic Report Support
10 stars 17 forks source link

compiled textobject.py(textobject.pyc) problem in openerp7 #2

Open pooyars opened 10 years ago

pooyars commented 10 years ago

I am working on openerp 7 for a while and Now I am going to change rml reports(pdf) to be able to display arabic fonts correctly in reports. regarding to the solution you mentioned I followed the instruction and there is a big problem. "copy file textobject.py into: \Openerp Server \Server\server\reportlab\pdfgen" is indicating to replace textobject.py with the original one but the original one is not .py file in openerp 7 , it is a compiled one with this format "textobject.pyc" and this solution has no compiled file. would you please help to solve this?

Logic-gate commented 10 years ago

The compiled version must exist with the original one. I haven't that much experience with windows, however my suggestion is the following:

1 - if you are utterly sure that textobject.py is not in the directory, check out openerp's developers forum, it could be that they changed the path. However I doubt that the compiled file will be in a different directory.

2 - check your rubbish bin. It could be that you deleted by mistake.

3 - reinstall openerp.

Hope this helps.

Regards,

Logic-gate commented 10 years ago

Disregard the last suggestion.

HichamGT commented 10 years ago

Hello everyone,

I came to test the "barsi/openerp-rtl" proposed and it work perfectly,

You have only to make sure to delete the textobject.pyc when you are configuring openerp at the following stage: copy file textobject.py into: \Openerp Server 6.1\Server\server\reportlab\pdfgen, you may want to backup the old textobject.py before replace it with this version.

Now, when openerp restarts, the new textobject.py will be compiled and the Arabic printing will be functionnal.

Sorry for the delay in the answer.