parodoo / parOdoo

Extensions and addons for Persian language support in Odoo ERP.
Apache License 2.0
13 stars 16 forks source link

ورژن 14 #5

Closed amirnano closed 3 years ago

amirnano commented 3 years ago

سلام اول از همه میخواستم تشکر کنم بابت انتشار این ماژول و رویکرد اپن سورسی که دارید واقعا قابل ستایش هست. من این ماژول رو نصب کردم روی ورژن 14 اما به علت بهم نخوردن کدهای اصلی پوشه ادان رو جایگزین فایل های اصلی نکردم. اما ماژول کار کرد و بیشتر قسمت ها به شمسی تغییر پیدا کرد ، میخواستم بپرسم از خدمت شما آیا امکان داره ماژول به صورت یک ماژول مجزا بدون نیاز به جایگذاری فایل های قبلی و اصلی توسعه پیدا کنه یا خیر؟

BabakMahmoudi commented 3 years ago

سلام. داریم روی این مشکل کار میکنیم. خبر میدم.

BabakMahmoudi commented 3 years ago

There's a conflict between Odoo locale and moment-jalali. The new version uses Persian digits for dates when the user selects Persian language, while in moment-jalali its an option that should be set. We decided to disable digit conversions in Odoo locale since its a bit awkward to have Persian digits in dates, while everywhere else we see Latin digits. To disable digit conversions in Odoo, one should edit 'fa.js' this is located in server\odoo\addons\web\static\lib\moment\locale folder, like: `/*

This will disable digit conversions. We have included 'fa.js' in the root of repository. See this link for more details in Persian.

BabakMahmoudi commented 3 years ago

Fixed with disabling Persian digit conversions.