Odoo-mobile / framework

Odoo Mobile Framework
https://play.google.com/store/apps/dev?id=8607973775002477408
Other
327 stars 374 forks source link

Request data from the user #357

Open enerik opened 6 years ago

enerik commented 6 years ago

I am trying to get some user related data from the server . When i create the addon and the model i am able to get the data. The problem is that i get all the data and not the specific data wich are connected to the specific user . Does anyone have any idea on how to get the data that are related to the user that is loged on ? Looking forward to your response

Regards Eno

ghost commented 6 years ago

@enerik Have you tried looking at com.odoo.core.account.Profile.java

screenshot_20171124-123347

screenshot from 2017-11-24 12-43-10

if still there's a thing that is missing, goto com.odoo.base.addons.res.ResUsers.java and add missing fields.

Thanks

enerik commented 6 years ago

Hello Kasim ,

Thank you for your reply . Actually what i need is to be able to get some data on the server that are related only to that user. For example if i have a model wich can have many user interacting with it , i need only to get the colums where the user that is loged on is present .

kasim1011 commented 6 years ago

@enerik You might talking about Record Rules & Field Access.

enerik commented 6 years ago

@KasimSCS
thanks for reply . I am currently having problem trying to implement some modules form selfhosted odoo to the android app . I am following the sample model "project.project" in the odoo mobile documentation the sample works very good . And based on that solution i am trying to build new addon wich needs to comunicate with the manufacture module in Odoo and get input from the user and write it in the central db in odoo . Until now i managed to get some fields from the manufacture modul based on the sample "project.projet". I have no idea on how to go to other step . Best Regards