diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/google_calendar/views | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/google_calendar/views')
4 files changed, 85 insertions, 0 deletions
diff --git a/addons/google_calendar/views/google_calendar_templates.xml b/addons/google_calendar/views/google_calendar_templates.xml new file mode 100644 index 00000000..5ec3eaaf --- /dev/null +++ b/addons/google_calendar/views/google_calendar_templates.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <template id="assets_backend" name="google_calendar assets" inherit_id="web.assets_backend"> + <xpath expr="." position="inside"> + <link rel="stylesheet" type="text/scss" href="/google_calendar/static/src/scss/google_calendar.scss"/> + <script type="text/javascript" src="/google_calendar/static/src/js/google_calendar_popover.js"></script> + <script type="text/javascript" src="/google_calendar/static/src/js/google_calendar.js"></script> + </xpath> + </template> + + <template id="qunit_suite" name="google_calendar_tests" inherit_id="web.qunit_suite_tests"> + <xpath expr="." position="inside"> + <script type="text/javascript" src="/google_calendar/static/tests/mock_server.js" /> + <script type="text/javascript" src="/google_calendar/static/tests/google_calendar_tests.js"></script> + </xpath> + </template> + + <template id="qunit_mobile_suite" name="mail_mobile_tests" inherit_id="web.qunit_mobile_suite_tests"> + <xpath expr="." position="inside"> + <script type="text/javascript" src="/google_calendar/static/tests/mock_server.js" /> + </xpath> + </template> +</odoo> diff --git a/addons/google_calendar/views/google_calendar_views.xml b/addons/google_calendar/views/google_calendar_views.xml new file mode 100644 index 00000000..1d22a10e --- /dev/null +++ b/addons/google_calendar/views/google_calendar_views.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<odoo> + <record id="view_google_calendar_event" model="ir.ui.view"> + <field name="name">google_calendar.event.calendar</field> + <field name="model">calendar.event</field> + <field name="inherit_id" ref="calendar.view_calendar_event_calendar"/> + <field name="arch" type="xml"> + <field name="attendee_status" position="after"> + <field name="google_id" invisible="1"/> + </field> + </field> + </record> +</odoo> diff --git a/addons/google_calendar/views/res_config_settings_views.xml b/addons/google_calendar/views/res_config_settings_views.xml new file mode 100644 index 00000000..5c64ac49 --- /dev/null +++ b/addons/google_calendar/views/res_config_settings_views.xml @@ -0,0 +1,21 @@ +<?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.calendar</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"> + <div id="msg_module_google_calendar" position="replace"> + <div class="content-group" attrs="{'invisible': [('module_google_calendar','=',False)]}"> + <div class="mt16 row"> + <label for="cal_client_id" string="Client ID" class="col-3 col-lg-3 o_light_label"/> + <field name="cal_client_id" nolabel="1"/> + <label for="cal_client_secret" string="Client Secret" class="col-3 col-lg-3 o_light_label"/> + <field name="cal_client_secret" password="True" nolabel="1"/> + </div> + <a href="https://www.odoo.com/documentation/14.0/applications/general/calendars/google/google_calendar_credentials.html" class="oe-link" target="_blank"><i class="fa fa-fw fa-arrow-right"/>Tutorial</a> + </div> + </div> + </field> + </record> +</odoo> diff --git a/addons/google_calendar/views/res_users_views.xml b/addons/google_calendar/views/res_users_views.xml new file mode 100644 index 00000000..a6795d07 --- /dev/null +++ b/addons/google_calendar/views/res_users_views.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + + <record id="view_users_form" model="ir.ui.view"> + <field name="name">res.users.form</field> + <field name="model">res.users</field> + <field name="inherit_id" ref="base.view_users_form"/> + <field name="arch" type="xml"> + <notebook colspan="4" position="inside"> + <page string="Google Calendar" name="calendar" groups="base.group_system"> + <group class="text-break"> + <field name="google_calendar_rtoken" readonly="1"/> + <field name="google_calendar_token" readonly="1"/> + <field name="google_calendar_token_validity" readonly="1"/> + <field name="google_calendar_sync_token" readonly="1"/> + <field name="google_calendar_cal_id" readonly="1"/> + </group> + <button + string="Reset Account" class="btn btn-secondary" + type="action" name="%(google_calendar_reset_account_action)d" + context="{'default_user_id': id}"/> + </page> + </notebook> + </field> + </record> + +</odoo> + |
