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.

44 lines
1.8 KiB

11 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Base Phone module for OpenERP
  4. Copyright (C) 2012-2013 Alexis de Lattre <alexis@via.ecp.fr>
  5. The licence is in the file __openerp__.py
  6. -->
  7. <openerp>
  8. <data>
  9. <record id="reformat_all_phonenumbers_form" model="ir.ui.view">
  10. <field name="name">reformat_all_phonenumbers.form</field>
  11. <field name="model">reformat.all.phonenumbers</field>
  12. <field name="arch" type="xml">
  13. <form string="Reformat all phone numbers" version="7.0">
  14. <!-- TODO : add a "state" and display fields accordingly -->
  15. <group name="main">
  16. <label string="This wizard reformats the phone, mobile and fax numbers of all partners in standard international format e.g. +33141981242" colspan="4"/>
  17. <label colspan="4" string="Phone numbers that couldn't be reformatted:"/>
  18. <field name="phonenumbers_not_reformatted" colspan="4" nolabel="1"/>
  19. </group>
  20. <footer>
  21. <button name="run_reformat_all_phonenumbers" string="Reformat all phone numbers" type="object" class="oe_highlight"/>
  22. <button special="cancel" string="Cancel" class="oe_link" />
  23. </footer>
  24. </form>
  25. </field>
  26. </record>
  27. <record id="reformat_all_phonenumbers_action" model="ir.actions.act_window">
  28. <field name="name">Reformat Phone Numbers</field>
  29. <field name="res_model">reformat.all.phonenumbers</field>
  30. <field name="view_mode">form</field>
  31. <field name="target">new</field>
  32. </record>
  33. <!-- Menu entry under Settings > Technical -->
  34. <menuitem id="menu_config_phone" name="Telephony" parent="base.menu_custom"/>
  35. <menuitem id="reformat_all_phonenumbers_menu" action="reformat_all_phonenumbers_action" parent="menu_config_phone" sequence="100"/>
  36. </data>
  37. </openerp>