Browse Source

[FIX] doc: for Custom Widgets tutorial

master
zbychu555 6 years ago
committed by Martin Trigaux
parent
commit
6682bde8a2
  1. 6
      doc/howtos/web.rst

6
doc/howtos/web.rst

@ -2216,7 +2216,7 @@ the most useful being:
}
});
instance.web.form.custom_widgets.add('coordinates', 'local.WidgetCoordinates');
instance.web.form.custom_widgets.add('coordinates', 'instance.oepetstore.WidgetCoordinates');
.. code-block:: xml
@ -2280,13 +2280,13 @@ the most useful being:
},
});
instance.web.form.custom_widgets.add('coordinates', 'local.WidgetCoordinates');
instance.web.form.custom_widgets.add('coordinates', 'instance.oepetstore.WidgetCoordinates');
.. code-block:: xml
<t t-name="WidgetCoordinates">
<iframe width="400" height="300"
t-att-src="https://maps.google.com/?ie=UTF8&amp;ll={{latitude}},{{longitude}}&amp;output=embed">
t-attf-src="https://maps.google.com/?ie=UTF8&amp;ll={{latitude}},{{longitude}}&amp;output=embed">
</iframe>
<button>Get My Current Coordinate</button>
</t>

Loading…
Cancel
Save