[FIX] doc: for Custom Widgets tutorial
This commit is contained in:
parent
f008240411
commit
6682bde8a2
|
@ -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&ll={{latitude}},{{longitude}}&output=embed">
|
||||
t-attf-src="https://maps.google.com/?ie=UTF8&ll={{latitude}},{{longitude}}&output=embed">
|
||||
</iframe>
|
||||
<button>Get My Current Coordinate</button>
|
||||
</t>
|
||||
|
|
Loading…
Reference in New Issue