3

I'm developing mobile app that has to be able work with either 7 and 8 version protocols through raw json rpc requests. And after few hours of searches I'm still curious, how to determine which version of OpenERP/Odoo server uses? Any ideas or may be here exists some specific request to know server build info.

Thanks in advance.

Update Thanks to @Mischievous 's answer. It gave me a point. So, my solution is request like that your.server.url/web/webclient/version_info

Metaphore
  • 749
  • 1
  • 7
  • 15

2 Answers2

6

Yes, you can find the server info from here. Take look at screen-shot.

Just click on the "About Odoo"

enter image description here

bud-e
  • 1,511
  • 1
  • 20
  • 31
  • 1
    Oh, thank you! This is exactly what I looked for. Sniffer shows me that my solution is request like so your.server.url/web/webclient/version_info – Metaphore Oct 10 '14 at 10:09
1

In 7 & 8 just import openerp and it is in openerp.release.version.

You may have to write something yourself that returns this though.

Adrian Merrall
  • 2,509
  • 12
  • 9
  • What do you mean "just import openerp"? Btw, I can't modify server, because app is just a client and should work with any server by provided URL. – Metaphore Oct 09 '14 at 08:26
  • What I meant was you could write a very simple server method that simply returned the version from openerp.release.version. However, if you can't modify the server then I'm not aware of anything simple I'm afraid. You may have resort to some heuristics on the results of a common function like list modules for example. – Adrian Merrall Oct 09 '14 at 19:16