Odoo Help

Welcome!

This community 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.

1

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

By
Mohammed Mansour
on 4/20/14, 12:45 PM 3,176 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 ?

prakash
on 9/29/14, 2:31 AM
2

Med Said BARA

--Med Said BARA--
2664
| 5 5 7
Algeria
--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.

http://sourceforge.net/projects/pythondateutil/files/pythondateutil/1.0/

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:

http://www.al-habib.info/islamic-calendar/hijricalendar-kuwaiti.js

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.

rosey
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?

rosey
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?

rosey
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?

rosey
on 4/21/14, 6:59 AM

@Med Said BARA,Any solution?

Remya
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.

rosey
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.

Remya
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?

rosey
on 4/23/14, 7:09 AM

@Med Said BARA, Nice work.

Remya
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.

rosey
on 4/25/14, 7:02 AM

Did the .js files ready,Med Said BARA?

rosey
on 4/25/14, 10:42 AM

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

rosey
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.

rosey
on 4/26/14, 9:27 AM

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

rosey
on 4/26/14, 9:31 AM

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

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

Any advice regarding Hijri Calendar Widget ..

see the below url

https://www.odoo.com/fr_FR/forum/help-1/question/urgent-islamic-date-widget-issue-73745

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

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