19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:12 +01:00
parent 79f83631d5
commit 73afc09215
6267 changed files with 1534193 additions and 1130106 deletions

View file

@ -4,22 +4,22 @@
<record id="res_config_settings_view_form_inherit_autocomplete_googleplaces" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.autocomplete.googleplaces</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="website.res_config_settings_view_form"/>
<field name="inherit_id" ref="website_sale.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='autocomplete_googleplaces_setting']/div[hasclass('o_setting_right_pane')]" position="inside">
<xpath expr="//setting[@id='autocomplete_googleplaces_setting']" position="inside">
<div>
<div class="content-group row mt16">
<label class="col-4" for="google_places_api_key" string="API Key"/>
<field class="col-6" name="google_places_api_key"/>
<label class="col-4" for="website_google_places_api_key" string="API Key"/>
<field class="col-6" name="website_google_places_api_key"/>
</div>
<div class="mt8">
<a target="_blank" href="https://console.cloud.google.com/getting-started">
<i class="fa fa-arrow-right"/>
<i class="oi oi-arrow-right"/>
Create a Google Project and get a key
</a>
<br/>
<a target="_blank" href="https://console.cloud.google.com/billing">
<i class="fa fa-arrow-right"/>
<i class="oi oi-arrow-right"/>
Enable billing on your Google Project
</a>
</div>

View file

@ -1,11 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="website_sale_address_with_autocomplete" inherit_id="website_sale.address">
<xpath expr="//input[@name='street']" position="attributes">
<template id="website_sale_address_with_autocomplete" inherit_id="website_sale.address_form_fields">
<input name="street" position="attributes">
<attribute name="t-att-data-autocomplete-enabled">
1 if website.has_google_places_api_key() else 0
</attribute>
</xpath>
</input>
</template>
</odoo>