ERP-Ukraine / odoo-rpc-dart

Odoo RPC Library for Dart
MIT License
44 stars 35 forks source link

[Feature] Get list of available databases #5

Closed mdev88 closed 3 years ago

mdev88 commented 3 years ago

Hello,

I was wondering if there was a way to get the list of available databases on a server using the current version of the package or if it's something that might be useful to implement as a new feature.

Thanks!

mdev88 commented 3 years ago

I'll answer my own question:

client.callRPC('/web/database/list', 'list', {});

Done!

lem8r commented 3 years ago

It is worth mentioning that it is recommeded to close DB list on production databases, so you need to ask a user for DB name if /web/database/list route is closed.