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.

43 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2016-2017 LasLabs Inc.
  4. License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
  5. -->
  6. <odoo>
  7. <record id="res_users_authenticator_create_view_form" model="ir.ui.view">
  8. <field name="name">MFA App/Device Creation Wizard</field>
  9. <field name="model">res.users.authenticator.create</field>
  10. <field name="arch" type="xml">
  11. <form string="Authenticator Info">
  12. <header/>
  13. <sheet>
  14. <div>
  15. <span>Please provide a name for your app/device. </span>
  16. <span>Then scan the QR code below to add this account to your authenticator app and enter in the six digit code produced by the app.</span>
  17. </div>
  18. <group name="data">
  19. <field name="name"/>
  20. <field name="user_id"/>
  21. <field name="qr_code_tag"/>
  22. <field name="confirmation_code"/>
  23. <field name="secret_key" invisible="1"/>
  24. </group>
  25. </sheet>
  26. <footer>
  27. <button special="cancel" string="Cancel" class="pull-left"/>
  28. <button name="action_create" type="object" string="Create" class="oe_highlight pull-right"/>
  29. </footer>
  30. </form>
  31. </field>
  32. </record>
  33. <record id="res_users_authenticator_create_action" model="ir.actions.act_window">
  34. <field name="name">MFA App/Device Creation Wizard</field>
  35. <field name="res_model">res.users.authenticator.create</field>
  36. <field name="view_type">form</field>
  37. <field name="view_mode">form</field>
  38. <field name="target">new</field>
  39. </record>
  40. </odoo>