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.

51 lines
2.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2012-2018 Akretion France
  4. @author: Alexis de Lattre <alexis@via.ecp.fr>
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  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. <p states="draft">This wizard reformats the phone and mobile numbers of all partners in standard international format e.g. +33 1 41 98 12 42</p>
  15. <p states="done">Phone numbers that couldn't be reformatted:</p>
  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="btn-primary" states="draft"/>
  23. <button name="action_next" type="object" string="Close"
  24. class="btn-primary" states="done"/>
  25. <button special="cancel" string="Cancel"
  26. class="btn-default" 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. </record>
  44. </odoo>