Sunday, December 16, 2012

OpenERP Arabic Report Now Supported on Windows


Hi,

After long time suffering of OpenERP Middle East users when using OpenERP to produce clean and RTL Reports on Windows. now, I'm very proud to bring solution that ends this suffering forever.

a pure python implementation of unicode bidirection algorithm has been used for this solution. to make it cross platforms and for all openerp versions. so, there is no Fribidi will be required anymore to make openerp produce a clear reports.

we upload a short demo on youtube to see how it looks like:






This Solution will be available on https://github.com/barsi/openerp-rtl with a details instructions of how to hook it into your openerp installation. so, please go and fork.

Updates:
   
     Odoo version 8.0 is now in release candidate stage, we also developed an RTL support for it, and it covers the backend UI, the new website feature, and also reports, check it out.

Thanks and Regards.


5 comments:

  1. Thanks Mr. Barsi for sharing your effort, but let ask if there is any fix for this issue for web interface?
    Regards.

    ReplyDelete
    Replies
    1. hi obay,

      sorry for late reply.
      there is a patch for this bug, you can find the bug report here:
      https://bugs.launchpad.net/openobject-server/+bug/1019804

      if you're on windows and dont like to deal with patch files. I pushed a new branch on github: https://github.com/barsi/openerp-rtl/tree/bug%23109087078/Server/server/openerp/tools

      thanks.

      Delete
  2. Thanks Mr. Barsi for all your efforts but unfortunately this didn t solve methe problem. i am using windows plateform i use version 6.0 and V 5.1 . the folder reportlab\pdfge exist only in library.zip and i find there textobject.pyo (compiled file) not the textobject.py. Thank you for your help

    ReplyDelete
    Replies
    1. hi tarik,
      wow, someone still using v5 :).

      here is a trick to make it work on v5 and v6.0, note that i'm not testing it, but as far as i remember I was used this trick on v6.0:

      1- extract library.zip.
      2- replace paste textobject.py on reportlab/pdfgen.
      3- delete textobject.pyo or backup it somewhere.
      4- rezip library folder.
      5- restart openerp server.

      ISSUES:

      - the version of reportlab library is not the same on v5 and v6.1 . so, this may cause an issue.
      - I think "fonts_search_path" config option is not supported on v5 (I think, try it).

      anyway, be careful if you're dealing with legacy system as the above issues may occur.
      if you're openerp developer, take a look at zipimport lib, to understand how openerp deal with library.zip file:
      http://docs.python.org/2/library/zipimport.html

      Delete
  3. Thank you Mr.Mohammed for this initiative

    ReplyDelete