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

enable synchronization #383

Open
developpeurSTS opened this issue Oct 31, 2018 · 11 comments
Open

enable synchronization #383

developpeurSTS opened this issue Oct 31, 2018 · 11 comments

Comments

@developpeurSTS
Copy link

Good evening dear all,

I have difficulties with setting the synchronization on the odoo mobile application.
By doing this,
Settings> Sync Settings> Odoo> user [Odoo8],
I get an empty list.
It is then impossible to eneable the synchronization of the models of the list.

Someone would have a solution to offer me?
Thank you

@ikerfah
Copy link

ikerfah commented Nov 1, 2018

Hello, Did you add the services to your manifest ? ( you need to two tags , provider and service) , did you ?

@developpeurSTS
Copy link
Author

Yes, everything is there.
When I run it on an emulator (android 4.4.2), I see that synchronization models appear normally.
But when I run it on a phone with the same characteristics as the emulator, I do not get anything.
I tried with 3 different phones with android versions (4.4.2, 7.0), same result.
Thank you

@ikerfah
Copy link

ikerfah commented Nov 2, 2018

Can you post a screenshot for your manifest ? I want to see how did your wrote the provider and service

@developpeurSTS
Copy link
Author

capture1_emulateur

that's the screenshot when the application is running on the emulator.
As you can see, I have the option to check / uncheck.

screenshot_20181102-155046

that's the screenshot when the application runs on my phone (Tecno Camon CM, android 7.0).
As you can see, I have nothing.

Files.zip

There you have the files that you asked me (provider, service, manifest).

@ikerfah
Copy link

ikerfah commented Nov 2, 2018

This can be a issue from your device , you can find sync adapter for other apps ? if your can't, can you please go to "Settings > Apps ... Show System" you should see "Calendar Storage" and must not be disabled.
and then enable it.

@developpeurSTS
Copy link
Author

screenshot_20181102-164847 1

@developpeurSTS
Copy link
Author

I just checked, it's activated, and all seems normal.

@ikerfah
Copy link

ikerfah commented Nov 2, 2018

Right, Can you please add 'syncable' attribute to your provider and set it to true ?
android:syncable="true"

@developpeurSTS
Copy link
Author

Sorry, I can not find the 'syncable' attribute anywhere. Can you guide me further?

@ikerfah
Copy link

ikerfah commented Nov 2, 2018

inside your provider ,
<provider android:name="com.odoo.addons.customers.providers.CustomersSyncProvider" android:authorities="${applicationId}.core.provider.content.sync.res_partner" android:label="@string/sync_label_customers" android:syncable="true" android:multiprocess="true" />

@developpeurSTS
Copy link
Author

Sorry nothing has changed.

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