Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4426 Ansichten

I am new using odoo and I have to connect odoo V8 with other API application. I learn how to consume the API from Python code and work fine, but I can't find documentation about how consume it using odoo. I appreciate any help.

Avatar
Verwerfen
Autor Beste Antwort

In my case was so simple like install google map library on my Ubuntu server an consume it inside a method.


import googlemaps

gmaps = googlemaps.Client(key='my_especial_key')

geocode_result = gmaps.geocode(street + ", " + street2 + ", " + city + ", " + zip)


raise osv.except_osv(("Warning!"), (str(geocode_result[0]['formatted_address']) + " (lat: " +str(geocode_result[0]['geometry']['location']['lat']) + ") (lng: "+ str(geocode_result[0]['geometry']['location']['lng']) +")"))



Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Feb. 22
5651
0
Feb. 24
3850
2
Sept. 15
4686
0
Mai 15
3164
1
Juni 24
1731