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.

54 lines
2.3 KiB

10 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">
  14. <group name="main">
  15. <label string="This wizard reformats the phone, mobile and fax numbers of all partners in standard international format e.g. +33141981242" colspan="2" states="draft"/>
  16. <label colspan="2" string="Phone numbers that couldn't be reformatted:" states="done"/>
  17. <field name="phonenumbers_not_reformatted" colspan="2" nolabel="1" states="done"/>
  18. <field name="state" invisible="1"/>
  19. </group>
  20. <footer>
  21. <button name="run_reformat_all_phonenumbers"
  22. string="Reformat all phone numbers" type="object"
  23. class="oe_highlight" states="draft"/>
  24. <button name="action_next" type="object" string="Close"
  25. class="oe_highlight" states="done"/>
  26. <button special="cancel" string="Cancel"
  27. class="oe_link" states="draft"/>
  28. </footer>
  29. </form>
  30. </field>
  31. </record>
  32. <record id="reformat_all_phonenumbers_action" model="ir.actions.act_window">
  33. <field name="name">Reformat Phone Numbers</field>
  34. <field name="res_model">reformat.all.phonenumbers</field>
  35. <field name="view_mode">form</field>
  36. <field name="target">new</field>
  37. </record>
  38. <!-- Menu entry under Settings > Technical -->
  39. <menuitem id="menu_config_phone" name="Telephony" parent="base.menu_custom"/>
  40. <menuitem id="reformat_all_phonenumbers_menu" action="reformat_all_phonenumbers_action" parent="menu_config_phone" sequence="100"/>
  41. <!-- Open the Reformat Phone Numbers wizard after the installation of the module -->
  42. <record id="reformat_all_phonenumbers_module_install" model="ir.actions.todo">
  43. <field name="action_id" ref="reformat_all_phonenumbers_action"/>
  44. <field name="type">automatic</field>
  45. </record>
  46. </data>
  47. </openerp>