Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
systemcalendardate
14 Replies
19332 Views
Avatar
Pooria Madani

I want to use OpenERP as the main ERP system for my company. The only problem is that our corporation does not use Georgian Calendar because of the geolocation of the company. In contrast, we are using Solar Hijri calendar as the offical calendar for dating our transactions.

I'm looking for direction to start. I know I have to implement it myself and there is no problem about that. But I don't know where to start.

Should keep inserting all the data into database based on Georgian Calendar but when I read them back into Web interface, I translate and convert them to Hijri Calendar ? If so what files or packages I should modify ?

Or it's better to change the server and make sure that the date is being inserted into database IS already converted to Hijri Calendar ? If so, where I'm suppose to start apply my change ?

Regards.

3
Avatar
Discard
Martin

Probably you should indicate which operating system you will use. It may have bearing.

Pooria Madani
Author

My server is Linux (Ubuntu or CentOS )

prakash

I don't want to change server date in to hijri I need some fields to enter Arabic date widget it is very important for person from midileast

Omid Rezvani

Pooria I checked your application, but is there a way to change the whole calendar?

Serpent Consulting Services Pvt. Ltd.

We've https://www.odoo.com/apps/modules/11.0/web_hijri_date/ now.

Avatar
Fabien Pinckaers (fp)
Best Answer

Here is the way OpenERP handles data that are location specific:

  • Data are stored in the database in UTC (not depending on the timezone of your users)
  • When the client receives the data, it translates it according to the timezone of the user which is on the global context that comes from the user preferences (so, the date/time you see on the screen is not the same than the one in the database)
  • The client sends back the new dates to the server under the UTC format

For information, the fields that are in the global context come from the context_get() method on the res.users object. You may have to overwrite this method if you want to add a new field in the global context which is sent to the client when the user logs in .

So, I think you should develop a module that:

  • _inherit the res.users object to add a preference field.selection whith the calendar he uses (gregorian / Solar Hijri)
  • overwrite the default calendar widget in the web client to use a .JS widget that support Solar Hijri calendar
  • do the translations between Solar Hijri and UTC when reading/writing dates in the widget (the current widget alreaady does this for all UTC timezones.)
5
Avatar
Discard
Pooria Madani
Author

Thanks for ur answer, I don't have any issue with time zone setting. All I'm trying to do is to make sure that all the recorded dates in the system is based on Solar Hijri Calendar, and but all I mean all the message that are sent, all the invoice transaction and etc.

Pooria Madani
Author

So if I change the Calendar widget and you said, what will happen to the automatic "date" assignment that system does, like send/receiving messages, or date of the comments posted bellow invoices and etc ?

prakash

I need to add arabic date in some field like widget I dont wand keep to change all openerp in to Arabic date, any help ?

Ali

Thanks for the instructions. I will try to implement the proposed solution as I have the same requirements for my system.

Omid Rezvani

There are many languages that use different calendars, is there a direct way to change the calendar? Is there a template for doing this?

Avatar
Megha Patel
Best Answer

Pooria Madani

You may find your solution here,

https://apps.odoo.com/apps/modules/11.0/web_hijri_date/

0
Avatar
Discard
Avatar
salman
Best Answer

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

0
Avatar
Discard
Serpent Consulting Services Pvt. Ltd.

We've https://www.odoo.com/apps/modules/11.0/web_hijri_date/ now.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
v17 schedule wrong date
calendar date
Avatar
0
May 24
2596
how to change the calendar format ?
calendar date
Avatar
Avatar
1
Mar 15
5847
Date Widget Autocomplete in Odoo16
calendar date autocomplete
Avatar
Avatar
1
Jun 23
3566
Calendar with multiple events
calendar date events
Avatar
1
Jun 15
5940
How make field.date can only be selected through calendar?
v6.1 calendar date
Avatar
Avatar
1
Mar 15
6239
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now