Odoo Help


How to change the Date/Calendar widget to support Solar Hijri calendar?

Mohammed Mansour
on 4/20/14, 12:45 PM 4,352 views

How can I convert the georgian date widget to arabic hijri widget so that i can use the arabic months in openerp 7 ?

Dear Mohamed Manasour is it your hijri calendar working fine please help me to fix this problem ?

on 9/29/14, 2:31 AM

Med Said BARA

--Med Said BARA--

| 5 5 7
--Med Said BARA--
Med Said BARA
On 4/20/14, 2:13 PM

You should start HERE. ( A good start from Fabien Pinckaers)

HereYou can find a python date_utils module (not to be confused with python-dateutil),which can manage Islamic Calendar.


And here (http://bazaar.launchpad.net/~bayazee/pycalverter/pyCalverter-dev/files), there is a calendar converter [calendars (hijri, jalahi, gregorian]. A more recent link

For the JS part, see the following links to find how you can overwrite the default calendar widget:


and http://farhadi.ir/projects/jalalijscalendar/

Here is what i get, after two days of work with javascript:

Hijri today Field

Deleting the previous answer, and moving to a new question.

I'll post the LINK of the NEW QUESTION here

link to the new Question

do you have any patches to solve this problem or there is a module to support hijri date in openerp 7.

Mohammed Mansour
on 4/20/14, 10:19 PM

I also want to implement hijri date in openerp 7. I dont want any conversion.

on 4/21/14, 2:57 AM

@Med Said BARA,I tried all these javascript files, but no change in the default calendar. Can you please tell me the apt path to save these files?

on 4/21/14, 6:34 AM

@Med Said BARA, first i installed python-dateutil, Next i downloaded each files and tried each one. But no output. I think my way of doing is wrong. Can you please help me, where i save these js files?

on 4/21/14, 6:37 AM

These files are for reading and to be compared with the original JS file, to see how it can be modified. I will elaborate a more complete response ASAP.

Med Said BARA
on 4/21/14, 6:54 AM

@Med Said BARA, Thanks Med. It will be very helpful to me. I am newbie in openerp. But i got a challenging requirement like this. I am working on this for last 1 week, but no solution. Can you please tell me path of the original js in openerp7?

on 4/21/14, 6:59 AM

@Med Said BARA,Any solution?

on 4/21/14, 7:54 AM

@Med Said BARA, Can you please post the answer? I am waiting for it, it will be very useful to me.

on 4/21/14, 9:22 AM

@Med, any solution to implement hijri calendar in my db? I am waiting for you answer. Did you know to implement it? Please response earlier.

on 4/22/14, 12:12 AM

Please, be patient.

Med Said BARA
on 4/22/14, 5:39 AM

@Med Said BARA, Any updates?

on 4/23/14, 7:09 AM

@Med Said BARA, Nice work.

on 4/25/14, 2:14 AM

@Med Said BARA, Nice work by you. I tried many ways. But didnt get any output. Awaiting your reply.

on 4/25/14, 7:02 AM

Did the .js files ready,Med Said BARA?

on 4/25/14, 10:42 AM

Got error: Uncaught TypeError: Object Thulatha, 7 Safar 1435 AH has no method 'getTime' Any Idea??

on 4/26/14, 7:07 AM

I'm working on correcting this bug. Continue testing the modified fiels, and submit all the errors, bugs, and ideas (with a description if possible)... Thank you.

Med Said BARA
on 4/26/14, 9:19 AM

I'm also trying solve this. If got solution, i'l definitely post the answer. Thank you.

on 4/26/14, 9:27 AM

Also got this error: Uncaught TypeError: Cannot call method 'on_message_detroy' of undefined

on 4/26/14, 9:31 AM

Error: 'Ithnain, 3 Rabi'ul Akhir 1435 AH' is not a correct date, datetime nor time

on 4/26/14, 9:55 AM
On 2/24/15, 8:41 AM

Any advice regarding Hijri Calendar Widget ..

see the below url


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

3 follower(s)


Asked: 4/20/14, 12:45 PM
Seen: 4352 times
Last updated: 3/16/15, 8:10 AM