Odoo-mobile / framework

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

enable synchronization #383

Open developpeurSTS opened 5 years ago

developpeurSTS commented 5 years ago

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 commented 5 years ago

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

developpeurSTS commented 5 years ago

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 commented 5 years ago

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

developpeurSTS commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

screenshot_20181102-164847 1

developpeurSTS commented 5 years ago

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

ikerfah commented 5 years ago

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

developpeurSTS commented 5 years ago

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

ikerfah commented 5 years ago

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 commented 5 years ago

Sorry nothing has changed.