You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

51 lines
2.3 KiB

<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012-2018 Akretion France
@author: Alexis de Lattre <alexis@via.ecp.fr>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="reformat_all_phonenumbers_form" model="ir.ui.view">
<field name="name">reformat_all_phonenumbers.form</field>
<field name="model">reformat.all.phonenumbers</field>
<field name="arch" type="xml">
<form string="Reformat all phone numbers">
<group name="main">
<p states="draft">This wizard reformats the phone and mobile numbers of all partners in standard international format e.g. +33 1 41 98 12 42</p>
<p states="done">Phone numbers that couldn't be reformatted:</p>
<field name="phonenumbers_not_reformatted" colspan="2" nolabel="1" states="done"/>
<field name="state" invisible="1"/>
</group>
<footer>
<button name="run_reformat_all_phonenumbers"
string="Reformat all phone numbers" type="object"
class="btn-primary" states="draft"/>
<button name="action_next" type="object" string="Close"
class="btn-primary" states="done"/>
<button special="cancel" string="Cancel"
class="btn-default" states="draft"/>
</footer>
</form>
</field>
</record>
<record id="reformat_all_phonenumbers_action" model="ir.actions.act_window">
<field name="name">Reformat Phone Numbers</field>
<field name="res_model">reformat.all.phonenumbers</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<!-- Menu entry under Settings > Technical -->
<menuitem id="menu_config_phone" name="Telephony" parent="base.menu_custom"/>
<menuitem id="reformat_all_phonenumbers_menu" action="reformat_all_phonenumbers_action" parent="menu_config_phone" sequence="100"/>
<!-- Open the Reformat Phone Numbers wizard after the installation of the module -->
<record id="reformat_all_phonenumbers_module_install" model="ir.actions.todo">
<field name="action_id" ref="reformat_all_phonenumbers_action"/>
</record>
</odoo>