gityopie / odoo-addons

Odoo and Google maps integration
GNU Lesser General Public License v3.0
100 stars 160 forks source link

JS error (V12) when click on button map view #111

Closed rolandn closed 5 years ago

rolandn commented 5 years ago

Erreur: Uncaught Error: QWeb2: Template 'MapView.buttons' not found

http://51.83.68.9:8069/web/content/272-0dc897c/web.assets_common.js:3374 Retraçage : Error: QWeb2: Template 'MapView.buttons' not found at Object.exception (http://51.83.68.9:8069/web/content/272-0dc897c/web.assets_common.js:3374:7) at Engine._render (http://51.83.68.9:8069/web/content/272-0dc897c/web.assets_common.js:3419:103) at Engine.render (http://51.83.68.9:8069/web/content/272-0dc897c/web.assets_common.js:3415:151) at Class.renderButtons (http://51.83.68.9:8069/web/content/333-adb64dc/web.assets_backend.js:3193:1023) at Class._renderControlPanelElements (http://51.83.68.9:8069/web/content/333-adb64dc/web.assets_backend.js:1291:175) at Class.start (http://51.83.68.9:8069/web/content/333-adb64dc/web.assets_backend.js:1283:1427) at Class.prototype.(anonymous function) [as start] (http://51.83.68.9:8069/web/content/272-0dc897c/web.assets_common.js:3538:488) at Class.start (http://51.83.68.9:8069/web/content/333-adb64dc/web.assets_backend.js:1548:1042) at Class.prototype.(anonymous function) [as start] (http://51.83.68.9:8069/web/content/272-0dc897c/web.assets_common.js:3538:488) at http://51.83.68.9:8069/web/content/272-0dc897c/web.assets_common.js:3684:52

gityopie commented 5 years ago

Hi @rolandn

Thanks for your feedback! Unfortunately, I cannot reproduce the error on my side

wildauwil commented 5 years ago

can i use this in custom module? and if can, what should i write in my xml code? using widget or something?

gityopie commented 5 years ago

hi @wildauwil yes, you can use it in your custom module. first you have to define map view like any other view (tree view, kanban view, etc..) you can find the sample in the module https://github.com/gityopie/odoo-addons/blob/12.0/web_google_maps/views/res_partner.xml.

if you have an issue working with the module or if you want to ask a question please open a new issue :)