| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <record id="res_config_settings_view_form" model="ir.ui.view">
- <field name="name">res.config.settings.view.form.inherit.google.api</field>
- <field name="model">res.config.settings</field>
- <field name="inherit_id" ref="base_setup.res_config_settings_view_form"/>
- <field name="arch" type="xml">
- <xpath expr="//block[@name='integration']" position="inside">
- <setting string="Google API Integration"
- help="Integrate with Google Drive and Google Calendar"
- id="google_api_integration_setting">
- <field name="google_api_enabled"/>
- <div class="content-group" invisible="not google_api_enabled" id="google_api_config">
- <div class="mt16 row">
- <label for="google_api_client_id" string="Google API Client ID" class="col-3 col-lg-3 o_light_label"/>
- <field name="google_api_client_id" nolabel="1"/>
- </div>
- <div class="mt16 row">
- <label for="google_api_client_secret" string="Google API Client Secret" class="col-3 col-lg-3 o_light_label"/>
- <field name="google_api_client_secret" password="True" nolabel="1"/>
- </div>
-
- <!-- Action Buttons - Simplified for Admin Configuration -->
- <div class="mt16 d-flex">
- <button name="action_validate_credentials"
- string="Validate Credentials"
- type="object"
- class="btn btn-secondary me-2"/>
- <button name="action_test_google_api_connection"
- string="Test API Connection"
- type="object"
- class="btn btn-primary me-2"/>
- <button name="action_show_oauth_redirect_uris"
- string="Show Redirect URI"
- type="object"
- class="btn btn-warning"/>
- </div>
-
- <!-- Help Info - Updated -->
- <div class="mt16">
- <div class="alert alert-info" role="alert">
- <strong>Configuration Steps:</strong>
- <ol class="mb-0 mt-2">
- <li><strong>Validate Credentials:</strong> Check if credentials are properly formatted</li>
- <li><strong>Test API Connection:</strong> Verify connectivity to Google APIs</li>
- <li><strong>Show Redirect URI:</strong> Get the URL to configure in Google Cloud Console</li>
- </ol>
- <div class="my-2" style="border-top: 1px solid #dee2e6;"></div>
- <strong>User Connection:</strong>
- <p class="mb-0 mt-2">Users connect their Google accounts from their personal preferences, not from here.</p>
- </div>
- </div>
- </div>
- </setting>
- </xpath>
- </field>
- </record>
- </odoo>
|