Browse Source

pre-commit update

14.0
OCA-git-bot 5 years ago
committed by Pedro M. Baeza
parent
commit
319a546ac5
  1. 2
      base_location_geonames_import/data/res_country_data.xml
  2. 4
      base_location_geonames_import/views/res_country_view.xml
  3. 36
      base_location_geonames_import/wizard/geonames_import_view.xml

2
base_location_geonames_import/data/res_country_data.xml

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="base.es" model="res.country">
<field name="geonames_state_code_column" eval="6" />

4
base_location_geonames_import/views/res_country_view.xml

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record model="ir.ui.view" id="view_country_geonames_form">
<field name="name">res.country.geonames.form</field>
<field name="model">res.country</field>
<field name="inherit_id" ref="base.view_country_form"/>
<field name="inherit_id" ref="base.view_country_form" />
<field name="type">form</field>
<field name="arch" type="xml">
<field name="code" position="after">

36
base_location_geonames_import/wizard/geonames_import_view.xml

@ -1,41 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="city_zip_geonames_import_form" model="ir.ui.view">
<field name="name">Import from Geonames form view</field>
<field name="model">city.zip.geonames.import</field>
<field name="arch" type="xml">
<field name="arch" type="xml">
<form string="Import from Geonames">
<group name="help">
<div>
<p>For the selected country, this wizard will download the latest version of the list of cities from <a href="http://www.geonames.org/">geonames.org</a>, create new location entries if not found already in the system, and <b>delete missing entries</b> from new file.</p>
<p
>For the selected country, this wizard will download the latest version of the list of cities from <a
href="http://www.geonames.org/"
>geonames.org</a>, create new location entries if not found already in the system, and <b
>delete missing entries</b> from new file.</p>
</div>
</group>
<group name="main">
<field name="country_id"/>
<field name="letter_case"/>
<field name="country_id" />
<field name="letter_case" />
</group>
<footer>
<button name="run_import" type="object"
class="oe_highlight" string="Import"/>
<button special="cancel" string="Cancel" class="oe_link"/>
<button
name="run_import"
type="object"
class="oe_highlight"
string="Import"
/>
<button special="cancel" string="Cancel" class="oe_link" />
</footer>
</form>
</field>
</record>
<record id="city_zip_geonames_import_action" model="ir.actions.act_window">
<field name="name">Import from Geonames</field>
<field name="res_model">city.zip.geonames.import</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem
id="city_zip_geonames_import_menu"
action="city_zip_geonames_import_action"
parent="contacts.menu_localisation"
sequence="50"
id="city_zip_geonames_import_menu"
action="city_zip_geonames_import_action"
parent="contacts.menu_localisation"
sequence="50"
/>
</odoo>
Loading…
Cancel
Save