| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 328 |
| Technical Name |
hijri_islamic_calendar |
| License | AGPL-3 |
| Website | http://www.bisolv.com |
| Versions | 15.0 16.0 17.0 18.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 328 |
| Technical Name |
hijri_islamic_calendar |
| License | AGPL-3 |
| Website | http://www.bisolv.com |
| Versions | 15.0 16.0 17.0 18.0 |
Overview
This module adds widget for the Hijri Date Picker.
If you need any help, please contact abdullah@bisolv.com.
Readonly Screen
Edit Screen
USAGE:Add
widget="date_hijri" for Char Field. Then that field will be transformed as Hijri Picker. Applicable only in Form view.
Advanced Features (Optional)
Conversion between Hijri and Gregorian
The module comes with an optional built-in feature for converting between Hijri and Gregorian dates.
Two fields have been created to accommodate Hijri and Gregorian input.
If you change date of one field will automatically update the other field.
This conversion process is happened by the Python package
hijri-converter,
and you can install it by executing the command
pip3 install hijri-converter
in the terminal."
STEP 1: Set up two fields - one designated for Gregorian date in the
Date()
field type,
and another for Hijri date in the
Char()
field type.
STEP 2: In the XML view, Apply the context
{'conversion_field_type': 'gregorian'}
to the Gregorian field and
{'conversion_field_type': 'hijri'}
to the Hijri field.
STEP 3: Write an onchange function within the same model that defines the fields.
Subsequently, call the
onchange_hijri_fields()
function, passing the technical name of the Gregorian field as
gregorian_field
and the technical name of the Hijri field as
hijri_field.
There is no need to define the onchange_hijri_fields() function.
If you follow these steps, the date will be converted automatically.
You May Also Like
Odoo Hijri, Odoo Hijri Date, Odoo Hijri Date Picker, Odoo Islamic Date, Odoo Islamic Date Picker,
Need Support ?
NB: You should have at least access to the server to receive support.
Scan for Skype chat.
www.bisolv.com
Watch YouTube Demo
Please log in to comment on this module