Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3657 มุมมอง

Hello!

How do I get the value of the decimal (or thousands) separator to validate it in javascript, if I have different languages thus different input formats in my OpenERP? Thank you

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Simply go to Settings ->Translations->Languages, end set parameters for desired language.. 
If you do not see Languages menu.. edit admin user and allow him Technical features... 

 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Hello! I am sorry that I did not show up after asking the question. I figure it out and forgot. To retreive the value of the decimal separator : var decimalSeparator = _t.database.parameters.decimal_point; for thousands separator : var thousandsSeparator =_t.database.parameters.thousands_sep;

Thank you very much , Bole!

อวตาร
ละทิ้ง