summaryrefslogtreecommitdiff
path: root/addons/pad/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/pad/views
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/pad/views')
-rw-r--r--addons/pad/views/pad.xml15
-rw-r--r--addons/pad/views/res_config_settings_views.xml20
2 files changed, 35 insertions, 0 deletions
diff --git a/addons/pad/views/pad.xml b/addons/pad/views/pad.xml
new file mode 100644
index 00000000..462797d4
--- /dev/null
+++ b/addons/pad/views/pad.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<odoo>
+ <template id="assets_backend" name="pad assets" inherit_id="web.assets_backend">
+ <xpath expr="." position="inside">
+ <link rel="stylesheet" href="/pad/static/src/css/etherpad.css"/>
+ <script type="text/javascript" src="/pad/static/src/js/pad.js" />
+ </xpath>
+ </template>
+
+ <template id="qunit_suite" name="pad tests" inherit_id="web.qunit_suite_tests">
+ <xpath expr="//script[last()]" position="after">
+ <script type="text/javascript" src="/pad/static/tests/pad_tests.js"></script>
+ </xpath>
+ </template>
+</odoo>
diff --git a/addons/pad/views/res_config_settings_views.xml b/addons/pad/views/res_config_settings_views.xml
new file mode 100644
index 00000000..10eb60ab
--- /dev/null
+++ b/addons/pad/views/res_config_settings_views.xml
@@ -0,0 +1,20 @@
+<?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.pad</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_pad" position="replace">
+ <div class="content-group" id="pad_configuration_settings" attrs="{'invisible': [('module_pad', '=', False)]}">
+ <div class="mt16 row">
+ <label for="pad_server" string="Server" class="col-3 col-lg-3 o_light_label"/>
+ <field name="pad_server" placeholder="e.g. beta.primarypad.com" attrs="{'required': [('module_pad', '!=', False)]}"/>
+ <label for="pad_key" string="API Key" class="col-3 col-lg-3 o_light_label"/>
+ <field name="pad_key" attrs="{'required': [('module_pad', '!=', False)]}"/>
+ </div>
+ </div>
+ </div>
+ </field>
+ </record>
+</odoo>