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.

50 lines
2.0 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. <field name="state" invisible="1"/>
  20. </group>
  21. <footer>
  22. <button name="run_reformat_all_phonenumbers"
  23. string="Reformat all phone numbers" type="object"
  24. class="oe_highlight" states="draft"/>
  25. <button special="cancel" string="Close"
  26. class="oe_highlight" states="done"/>
  27. <button special="cancel" string="Cancel"
  28. class="oe_link" states="draft"/>
  29. </footer>
  30. </form>
  31. </field>
  32. </record>
  33. <record id="reformat_all_phonenumbers_action" model="ir.actions.act_window">
  34. <field name="name">Reformat Phone Numbers</field>
  35. <field name="res_model">reformat.all.phonenumbers</field>
  36. <field name="view_mode">form</field>
  37. <field name="target">new</field>
  38. </record>
  39. <!-- Menu entry under Settings > Technical -->
  40. <menuitem id="menu_config_phone" name="Telephony" parent="base.menu_custom"/>
  41. <menuitem id="reformat_all_phonenumbers_menu" action="reformat_all_phonenumbers_action" parent="menu_config_phone" sequence="100"/>
  42. </data>
  43. </openerp>