Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
pyCalverter (Python Calendar Converter) is a tool for python developers that need to use Persian(Jalali) or Hijri(Islamic) Calendar in their programs .
On the other side this tool can convert these calendars (hijri, jalahi, gregorian) together .
Please check the above two links.
Copy the file
calverter.py into your module
In the file
__init__.py import the file :
In your code re-import calverter using the path of your module and type :
cal = calverter.calverter() jd = cal.gregorian_to_jd(2014, 04 , 23) print jd print cal.jd_to_islamic(jd)
The outopu will be :
2456770.5 (1435, 6, 22)
I implemeted it for my module and it works well.
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/23/14, 6:27 AM|
|Seen: 4327 times|
|Last updated: 9/26/17, 12:15 AM|