Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't getting data of many2many fields #69

Open
tula-acespritech opened this issue May 31, 2016 · 6 comments
Open

Can't getting data of many2many fields #69

tula-acespritech opened this issue May 31, 2016 · 6 comments

Comments

@tula-acespritech
Copy link

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?

@tonysumi
Copy link

@tula-acespritech you can refer to issue #135 of odoo framework.
Odoo-mobile/framework#135

@tula-acespritech
Copy link
Author

@tonysumi i already refer that and exactly do that but yet not getting data.

@tonysumi
Copy link

@tula-acespritech which module are you working on? Like customer,Sales?

@tula-acespritech
Copy link
Author

@tonysumi i working on Product module

@tonysumi
Copy link

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.user_id", "=", 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.

@tula-acespritech
Copy link
Author

tula-acespritech commented May 31, 2016

@tonysumi No there is no any domain in services.
Can you tell me that in setRelBaseColumn and SetRelRelationColumn in which column name passed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants