Help

0

How to make a js file globally accisseble in all modules ? (odoo 12)

Avatar
Misaghmi

Hi,

I'm new to Odoo.

I want to make a JavaScript function globally for changing all date types from Gregorian to Jalali or Shamsi all over the Odoo . I want to show all calendar in Odoo as Shamsi calendar.

There are some out-dated apps at Odoo app store and I tested some of them and they didn't worked in Odoo 12.

I found out that Odoo uses moment.js for dealing with dates. I found moment jalali for converting Gregorian date to Jalali date but I don't know how to use it in Odoo.

Is there another way to change dates, calendars and datepickers from Gregorian to Jalali ?

头像
丢弃
1 答案
0
Avatar
miladsadeghi
Best Answer

Hi misaghmi, this is my problem, do you find resolve for this problem??

头像
丢弃