The Odoo CRM Jalali Calendar Plugin adds Jalali (Persian) calendar functionality to all sections of Odoo CRM. This plugin allows users to view and input dates using the Jalali calendar system throughout the Odoo CRM application.
- Adds a Jalali date field to CRM leads and opportunities
- Provides a custom widget for Jalali date input
- Automatically converts Gregorian dates to Jalali dates
- Integrates seamlessly with existing Odoo CRM views
- Odoo 14.0 or later
- Python 3.6 or later
jdatetime
Python library
-
Ensure that the
jdatetime
library is installed in your Odoo environment:pip install jdatetime
-
Clone this repository or download the ZIP file and extract it into your Odoo addons directory:
git clone https://github.com/mehdiraized/jalali-calendar-odoo.git /path/to/odoo/addons/jalali_calendar_crm
-
Update the Odoo modules list:
- Go to Apps menu
- Click on "Update Apps List"
-
Install the module:
- Search for "Jalali Calendar for Odoo CRM" in the Apps menu
- Click "Install"
After installation, the Jalali calendar functionality will be available in the CRM module:
- Navigate to the CRM module in Odoo
- Open or create a new lead/opportunity
- You will see a new "Jalali Date" field, which displays the creation date in Jalali format
- When editing dates, you can use the Jalali calendar widget to select dates
You can extend this plugin to add Jalali calendar support to other modules or fields:
- Extend the desired model in
models/
directory - Add computed Jalali date fields as needed
- Update the views in
views/
directory to display the new Jalali date fields - If necessary, create new JS widgets in
static/src/js/
for custom date input
For issues, feature requests, or questions, please open an issue on the GitHub repository or contact the author.
If you find this plugin useful, please consider supporting its development by buying me a coffee. Your support helps cover the costs of maintaining and improving the plugin, ensuring it remains free and accessible for everyone. Thank you!
Contributions are welcome! Please fork the repository and submit a pull request with your improvements.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Odoo community for their excellent documentation and examples
- The
jdatetime
library developers for providing Jalali date conversion utilities