ERP-Ukraine / odoo-rpc-dart

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

Cannot access avatar from the url #8

Closed function2000 closed 3 years ago

function2000 commented 3 years ago

From the example, we can get the URL of the avatar, but always get default image, as we did not login, so cannot get the real image of user. How to resolve it?

lem8r commented 3 years ago

Hi!

You are acting as public user when not logged in. Public user has limited access to own res.partner only. Avatars are actually stored on relater partner.

This is Odoo's security limitation not rpc library issue.

kururu-abdo commented 2 years ago

so i can open image when session on? @lem8r

kururu-abdo commented 2 years ago

HTTP request failed, statusCode: 403, http://142.93.55.190:8069/web/image?model=property.base&field=pt_image&id=169&unique=20220217081743