res_config_settings_views.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.oauth</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. <div id="msg_module_auth_oauth" position="replace">
  9. <div class="content-group" attrs="{'invisible': [('module_auth_oauth','=',False)]}">
  10. <div class="mt8">
  11. <button type="action" name="%(auth_oauth.action_oauth_provider)d" string="OAuth Providers" icon="fa-arrow-right" class="btn-link"/>
  12. </div>
  13. </div>
  14. </div>
  15. <div id="module_auth_oauth" position="after">
  16. <div class="col-12 col-lg-6 o_setting_box"
  17. id="signin_google_setting"
  18. attrs="{'invisible': [('module_auth_oauth','=',False)]}">
  19. <div class="o_setting_left_pane">
  20. <field name="auth_oauth_google_enabled"/>
  21. </div>
  22. <div class="o_setting_right_pane">
  23. <label string="Google Authentication" for="auth_oauth_google_enabled"/>
  24. <a href="https://www.odoo.com/documentation/16.0/applications/general/auth/google.html" title="Documentation" class="o_doc_link" target="_blank"></a>
  25. <div class="text-muted">
  26. Allow users to sign in with their Google account
  27. </div>
  28. <div class="content-group" attrs="{'invisible': [('auth_oauth_google_enabled','=',False)]}">
  29. <div class="row mt16">
  30. <label for="auth_oauth_google_client_id" string="Client ID:" class="col-lg-3 o_light_label"/>
  31. <field name="auth_oauth_google_client_id" placeholder="e.g. 1234-xyz.apps.googleusercontent.com"/>
  32. </div>
  33. <a href="https://www.odoo.com/documentation/16.0/applications/general/auth/google.html" target="_blank"><i class="fa fa-fw fa-arrow-right"/>Tutorial</a>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. </field>
  39. </record>
  40. </odoo>