My question is how can I get the name of the database, where I am accessing, by python code.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kirjanpito
- Varastointi
- PoS
- Project
- MRP
Tämä kysymys on merkitty
1
Vastaa
6477
Näkymät
Hi Michael,
You can actually get the data from the Odoo cursor. New API:
db_name = self._cr.dbname
Old API:
db_name = cr.dbname
db_name will then contain the name of your database.
Regards,
Yenthe
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy