Skip to Content
Menu
This question has been flagged
2 Replies
3725 Views

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?


Avatar
Discard
Best Answer

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


Avatar
Discard
Author Best Answer

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

Avatar
Discard

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

Author

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

Thanks Wikum

Related Posts Replies Views Activity
2
Feb 23
2344
0
Feb 19
3115
2
Jul 18
7602
1
Dec 23
3534
1
Dec 22
8342