ERP-Ukraine / odoo-rpc-dart

Odoo RPC Library for Dart
MIT License
43 stars 32 forks source link

May someone have a issue about picture showing in Flutter interface ? #24

Closed excellencemichel closed 2 years ago

excellencemichel commented 2 years ago

When I fetch the patners data from and perform imageUrl in PartnerRepo but the images are not showing in the interface. I don't why beacause when I log the partners data I check image link is valid and I can show in browser tab. What can cause that ?

lem8r commented 2 years ago

Definitely not a RPC library issue. This library is pure dart code and there is no link with flutter.

What is image url you're trying to show?

excellencemichel commented 2 years ago

Please, it is for underline Odoo Repsitory https://github.com/ERP-Ukraine/odoo-repository-dart.git There are images like partners or contacts avatar image, here is an example: http://94.23.13.202:14022/web/image?model=res.partner&id=26&field=image_128&unique=19112021185128

lem8r commented 2 years ago

The link is correct by itself. Maybe flutter widget has some limitations. You need to debug it.

excellencemichel commented 2 years ago

Okay thank you very much for all. I'll try again. Odoo method hasRight can be called with this library ?

lem8r commented 2 years ago

There is no limitations of a library. You can call any rpc method that is public: not starts with underscore. See https://github.com/odoo/odoo/blob/0cf2ade4e6e959170906b4b0143e07909980b1d7/odoo/models.py#L116

excellencemichel commented 2 years ago

Okay. Thank you once again for everything !