partner-contact/base_location_nuts/wizard/nuts_import_view.xml
2024-10-01 07:51:46 +02:00

50 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<flectra>
<record id="nuts_import_form" model="ir.ui.view">
<field name="name">NUTS import</field>
<field name="model">nuts.import</field>
<field name="arch" type="xml">
<form string="Import NUTS 2013 from ShowVoc">
<div>
This wizard will download the lastest version of
NUTS 2024 from Europe ShowVoc service.
Updating or creating new NUTS entries if not
found already in the system, and DELETING MISSING
ENTRIES from new downloaded file.
Update or deletion is prevented for NUTS entries with the flag 'Not updatable'.
</div>
<footer>
<button
name="action_partner_nuts"
type="object"
class="oe_highlight"
string="Import"
/>
<button special="cancel" string="Cancel" class="oe_link" />
</footer>
</form>
</field>
</record>
<record id="nuts_import_action" model="ir.actions.act_window">
<field name="name">Import NUTS 2024 from SHOWVOC</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">nuts.import</field>
<field name="view_id" ref="nuts_import_form" />
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<menuitem
action="nuts_import_action"
id="nuts_import_menu"
name="Import NUTS 2024"
parent="contacts.menu_localisation"
sequence="45"
/>
<record id="config_wizard_nuts" model="ir.actions.todo">
<field name="name">Import NUTS 2024 from ShowVoc</field>
<field name="action_id" ref="nuts_import_action" />
<field name="sequence">20</field>
</record>
</flectra>