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.
49 lines
2.0 KiB
49 lines
2.0 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Base Phone module for OpenERP
|
|
Copyright (C) 2012-2013 Alexis de Lattre <alexis@via.ecp.fr>
|
|
The licence is in the file __openerp__.py
|
|
-->
|
|
|
|
<openerp>
|
|
<data>
|
|
|
|
<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" version="7.0">
|
|
<!-- TODO : add a "state" and display fields accordingly -->
|
|
<group name="main">
|
|
<label string="This wizard reformats the phone, mobile and fax numbers of all partners in standard international format e.g. +33141981242" colspan="4"/>
|
|
<label colspan="4" string="Phone numbers that couldn't be reformatted:"/>
|
|
<field name="phonenumbers_not_reformatted" colspan="4" nolabel="1"/>
|
|
</group>
|
|
<footer>
|
|
<button name="run_reformat_all_phonenumbers" string="Reformat all phone numbers" type="object" class="oe_highlight"/>
|
|
<button special="cancel" string="Cancel" class="oe_link" />
|
|
</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"/>
|
|
<field name="type">automatic</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|