addons/website_sale_autocomplete/views/templates.xml
raw| 1 | <?xml version="1.0" encoding="utf-8" ?> |
| 2 | |
| 3 | <odoo> |
| 4 | |
| 5 | <template id="website_sale_address_with_autocomplete" inherit_id="website_sale.address_form_fields"> |
| 6 | <input name="street" position="attributes"> |
| 7 | <attribute name="t-att-data-autocomplete-enabled"> |
| 8 | 1 if website.has_google_places_api_key() else 0 |
| 9 | </attribute> |
| 10 | </input> |
| 11 | </template> |
| 12 | |
| 13 | </odoo> |