res_config_settings_views.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="res_config_settings_view_form" model="ir.ui.view">
  4. <field name="name">res.config.settings.view.form.inherit.auth.signup</field>
  5. <field name="model">res.config.settings</field>
  6. <field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//div[@id='access_rights']" position="before">
  9. <div class="col-12 col-lg-6 o_setting_box"
  10. id="login_documents"
  11. title=" To send invitations in B2B mode, open a contact or select several ones in list view and click on 'Portal Access Management' option in the dropdown menu *Action*.">
  12. <div class="o_setting_left_pane">
  13. </div>
  14. <div class="o_setting_right_pane">
  15. <label for="auth_signup_uninvited"/>
  16. <div class="text-muted">
  17. Let your customers log in to see their documents
  18. </div>
  19. <div class="mt8">
  20. <field name="auth_signup_uninvited" class="o_light_label" widget="radio" options="{'horizontal': true}" required="True"/>
  21. </div>
  22. <div class="content-group" attrs="{'invisible': [('auth_signup_uninvited','=','b2b')]}">
  23. <div class="mt8">
  24. <button type="object" name="action_open_template_user" string="Default Access Rights" icon="fa-arrow-right" class="btn-link"/>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="col-12 col-lg-6 o_setting_box" id="enable_password_reset">
  30. <div class="o_setting_left_pane">
  31. <field name="auth_signup_reset_password"/>
  32. </div>
  33. <div class="o_setting_right_pane">
  34. <label string="Password Reset" for="auth_signup_reset_password"/>
  35. <div class="text-muted">
  36. Enable password reset from Login page
  37. </div>
  38. </div>
  39. </div>
  40. </xpath>
  41. </field>
  42. </record>
  43. </odoo>