Open tula-acespritech opened 8 years ago
@tula-acespritech you can refer to issue #135 of odoo framework. https://github.com/Odoo-mobile/framework/issues/135
@tonysumi i already refer that and exactly do that but yet not getting data.
@tula-acespritech which module are you working on? Like customer,Sales?
@tonysumi i working on Product module
check whether there is a domain(filter) added in your services. @Override public void performDataSync(OSyncAdapter adapter, Bundle extras, OUser user) { /* if (adapter.getModel().getModelName().equals("res.partner")) { // ODomain domain = new ODomain(); domain.add("|"); domain.add("|"); domain.add("opportunity_ids.user_id", "=", user.getUserId()); domain.add("sale_order_ids.userid", "=", user.getUserId()); domain.add("id", "in", adapter.getModel().getServerIds()); adapter.setDomain(domain); adapter.syncDataLimit(50);//_ }*/ }
Not sure if this will help you. I faced the same issue. after commenting those domain i got the datas.
@tonysumi No there is no any domain in services. Can you tell me that in setRelBaseColumn and SetRelRelationColumn in which column name passed?
Hello everybody, I have issue with many2many fields, like i have two many2many field within same OModel and its belong to same OModel class and for that i have declare table name and it also created table but in which i can't get data. so how can i get data?