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

Autosync not starting #142

Closed
warp10 opened this issue Apr 18, 2016 · 9 comments
Closed

Autosync not starting #142

warp10 opened this issue Apr 18, 2016 · 9 comments

Comments

@warp10
Copy link
Contributor

warp10 commented Apr 18, 2016

Hi there,

I have a small application built around the odoo mobile addons tutorial. It works quite good, as I am able to sync project.task bidirectionally with a swipe. Tasks created on Android are shown on Odoo, and the other way round too.

The issue I'm facing is about autosync. I am under a wifi network, with syncs enabled every 5 minutes for objects up to 12 months, yet the sync never actually starts. I don't get any error in the Android Monitor on Android Studio, actually nothing is shown at all, as if the sync process is actually never run by Android. Nevertheless, the sync task is enabled on Android (as you can see from the attached screenshot), and if I manually disable and then re-enable it there, the sync goes great.

Anybody has an idea of what's wrong?

device-2016-04-18-120213
device-2016-04-18-120201

@Tanererkan06
Copy link

i have some problems.. also i can see only odoo's menus . himself nothing..

@YPerezM
Copy link

YPerezM commented May 5, 2016

I have a problem with the sync between device and server. Any change that I make on my device doesnt appear on the server(for example, a new customer), and vice versa. The problem is that in my Settings-->Accounts-->Odoo I cant sync anything, nothing appear. I didnt find any solution to this.

Screenshot from device:
screenshot_2016-05-05-09-50-44

EDIT:I solved the problem, the problem was that in the android manifest and resPartner used the appId. I changed it to (in my case):"com.odoo.core.provider.content.sync.res_partner".

The auto-sync works too. And I think the only change of code that I made from the original in the sync stuff is in the customer_sync_adapter.xml add the line android:isAlwaysSyncable="true". Hope it can solve your auto-sync problem @warp10

@mikedream89
Copy link

@YPerezM
I add the line android:isAlwaysSyncable="true" in customer_sync_adapter.xml , but it not autosync ?
why?

@YPerezM
Copy link

YPerezM commented May 13, 2016

@mikedream89
And do you check your Manifest? You have to change android:authorities="${applicationId}.core.provider.content.sync.res_partner" to android:authorities="com.odoo.core.provider.content.sync.res_partner".
It should work fine with these changes

@Tanererkan06
Copy link

..or android:authorities="com.odoo.core.provider.res_partner" @mikedream89 @YPerezM

@kasim1011
Copy link
Contributor

Hey, Does your emulator or phone running lower version than Kitkat than you should see this.

@warp10
Copy link
Contributor Author

warp10 commented May 20, 2016

Hey @YPerezM thanks a lot for your information. Days after I reported this issue I found out that the sync actually starts, despite being run at quite random time, totally ignoring the settings the user choose. Nevertheless, I will implement your tuning and see if things change a little bit.

@kasim1011 Good to know, thanks!

@raulalejandromm
Copy link

Buenas.. disculpe. de mi parte no tengo el archivo customer_sync_adapter.xml

@dpr-odoo
Copy link
Collaborator

Similar issue will be fixed in #165

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

7 participants