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

I am working on an add-on for Odoo. For that, I want to get the Odoo version add-on is running.


I found a way to find the running Odoo version with Python.

Eg :

version = odoo.release.version


How can I get the Odoo version on a JavaScript add-on file?


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

Hi,

you can get the ODOO Version via the below way and also know the Edition of ODOO from JS.


>> odoo.session_info.server_version_info -->

  1. 013
  2. 10
  3. 20
  4. 3"final"
  5. 40
  6. 5""
 >> odoo.session_info.server_version_info[0]
## 14 (you get ODOO Version Number i.e. 12, 13, 14,...) 
ODOO Edition via this way
>> var isEnterprise = odoo.session_info.server_version_info[5] === 'e';

Thanks & Regards,
Sunny Sheth


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

Thank you, Sunny Sheth. I could get the Odoo version with odoo.session_info.server_version_info[0].

อวตาร
ละทิ้ง

Can you please upvote my answer?

so other people can search for a correct answers when they want help on a similar point.

Thanks Wikum

ผู้เขียน

I am sorry. I couldn't do it because I don't have enough karma.

Thanks Wikum

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 23
3726
0
ก.พ. 19
3814
How to Auto Refresh Kanban view แก้ไขแล้ว
2
ก.ค. 18
8494
1
ธ.ค. 23
5100
Change Python Version of ODOO แก้ไขแล้ว
1
ธ.ค. 22
9658