DEV Community

Khaled Said
Khaled Said

Posted on

3 3

(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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay