DEV Community

Khaled Said
Khaled Said

Posted on

(quick tip) how to get Odoo version from code

sometimes, you may need to prepare an Odoo development environment. you cloned the repository. however you need to get the Odoo version from code before even running it. in such scenario you could use grep to retrieve the Odoo version, as following:

grep -r -E "^version_info" {{PATH}}
# where path would your Odoo code path. so it could be
grep -r -E "^version_info" /home/user/project/odoo
Enter fullscreen mode Exit fullscreen mode

Top comments (0)