Hello,
I am integrating an Odoo instance (hosted on Odoo.sh) with my company backend (communication is made via xmlrpc) and i would like to know if there is a way to retrieve the database name of my instance.
I access to my Odoo instance with the following endpoint : my-company.odoo.com and it looks like the database name is something like my-company-XXXXXXX. With XXXXXX changing everytime a build is made. This is problematic because i need to be able to specify the odoo database name in my backend to communicate with it.
Do you know how to solve this problem ?
Thanks
@Niyas
Thanks for your super fast answer.
Indeed i did not make the attempt (yet) on the main branch. What you say reassures me.
Actually i planned to trigger automatically a new build on staging every day to have a fresh copy of the production environment on my staging environment so the "update previous build" solution will not work for me.
I noticed the following endpoint : https://www.odoo.sh/project/json/builds_per_branch that returns everything i need, but this is undocumented so i imagine that this api might change at anytime :/