Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
9482 Vizualizări

I tried to use this odoo 14 module (customer geolocation on map) on odoo 13. But module is installed without any error but while trying to see the map, this error occurs

Error:
Unknown CORS error
An unknown CORS error occured. The error probably originates from a JavaScript file served from a different origin. (Opening your browser console might give you a hint on the error.)

And the browser console shows the following errors 

1. InvalidValueError: setCenter: not  js?key=AIzaSyBo1Y7gyqKAG71ewQqBiYKWxC_A1StxRpg:66 InvalidValueError: setCenter: not a LatLng or LatLngLiteral with finite coordinates: in property lat: NaN is not an accepted value

2. Uncaught TypeError: Cannot read properties of null (reading 'zoom')
at Ska (map.js:55:296)
at HTMLDivElement. (map.js:54:241)



Can someone suggest what might be the problem        

Imagine profil
Abandonează
Cel mai bun răspuns

some how your lat value NAN(not a number), I think you should put like this in your model when you declare any Field .

lat = fields.Float(default=0., string="Latitude")
lng = fields.Float(default=0., string="Longitude")


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iun. 24
3472
0
sept. 21
6126
1
mar. 21
4312
4
dec. 24
18021
2
aug. 24
5133