跳至內容
選單
此問題已被標幟
2 回覆
4608 瀏覽次數

How to connect odoo database with flutter?

頭像
捨棄
最佳答案

For RPC calls to an Odoo database in Flutter I suggest to look at the Odoo RPC Client Library (https://pub.dev/packages/odoo_rpc). Personally I have good experience with this library. Using this library, a simple RPC call would look something like this:

var res = await client.callKw({
​'model': 'res.users',
​'method': 'search_read',
​'args': [],
​'kwargs': {
​'context': {'bin_size': true},
​'domain': [],
​'fields': ['id', 'name', 'email'],
​'limit': 80,
​},
});

I hope this helps!

頭像
捨棄
最佳答案

rpc


頭像
捨棄