diff options
Diffstat (limited to 'ab_openstreetmap/views/templates.xml')
| -rw-r--r-- | ab_openstreetmap/views/templates.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ab_openstreetmap/views/templates.xml b/ab_openstreetmap/views/templates.xml new file mode 100644 index 00000000..ed82ae84 --- /dev/null +++ b/ab_openstreetmap/views/templates.xml @@ -0,0 +1,13 @@ +<odoo> + <data> + <template id="assets_backend" inherit_id="web.assets_backend"> + <xpath expr="." position="inside"> + <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/> + <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script> + <link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" /> + <script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"></script> + <script type="text/javascript" src="/ab_openstreetmap/static/src/js/openstreetmap_widget.js"/> + </xpath> + </template> + </data> +</odoo>
\ No newline at end of file |
