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.

52 lines
2.4 KiB

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