Changes

Jump to navigation Jump to search

Module Google

643 bytes added, 5 months ago
m
|prerequisites=
|minversion=3.9+
- Your instance must be on a secured URL (it must start with https:// and not with http://)
 
- Having module openssl extension enabled into your PHP. To check this, go into module Home - Setup - PHP infos and make a search into page of "openssl". If you don't find, openssl module is not installed.
- Having module curl extension enabled into your PHP. To check this, go into module Home - Setup - PHP infos and make a search into page of "curl". If you don't find, curl module is not installed.
 
- To use the Maps and geocoding service, you must enable the billing on your Google account. Price is 0.005 € per address.
|note=
}}
With Google Apps for work (not required for standard gmail account), permissions may be forced to "Ready only" instead of "Edit". To solve this, go onto
{{GoogleURLToSetupCalendarAppSharing}}
and check that sharing option of Agenda application allows sharing with external service account. [[File:Warning.png]] A 24h delay may be required to be able to return and finish step 5.
This module allows you to synchronize Dolibarr with your Google contact annuary. The object you can synchronize are:
* Third-Parties
* Addresses
* Members of the module Association / Foundation
Synchronisation can be done toward only 1 Google account. However, using the Google sharing features (delegate contacts), several Google users with different accounts could see them.
2) Then go on the setup page of Google module in Dolibarr, choose all Dolibarr elements you want to synchronize among (You can choose several choices):
*Thirdparties Third parties (if module Thirdparty Third party is enabled)*Contacts/addresses of thirdparties (if module Thirdparty Third party is enabed)*Members (if module foundation members is enabled)
For each type of synchronization activated, enter a label of the Google Group of your choice. This is the group visible into Google to group all records together. Group will be created into Google Contact if not exists. You can also use a label of one of any predefined Google system group like: '''"System Group: My Contacts", "System Group: Friend", "System Group: CoWorker", "System Group: Family"'''
==Setup of GMaps features==
1) You must first enable the API for your Google account. For this go on page {{ModuleGoogleUrlToCreateApiAccount}}, menu "API & AuthenticationService" -> "Enable API& Services". Click to enable API for "Google Maps Geocoding API" and "Google Maps JavaScript API". 2) Create an API key of type "Server". You must check that the value for '''Restrictions relative to applications''' is on '''None''' '''Restrictions relative to API''' is on '''No restriction''' or, for a more secured usage, set to Restricted to the 2 APIs '''GeoCoding API''' and '''Maps Javascript API'''. Then save the API key on the setup page of module Google in Dolibarr, tab GMaps.
23) Create an API key of type You must enable the "Serverbilling" and enter it of APIs on the setup page of module your Google in Dolibarr, tab GMapsaccount (price is 0.005 € per geo-encoded address)
===Link to localize a specific address===

Navigation menu