summaryrefslogtreecommitdiff
path: root/web_notify/views
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-06-16 16:43:59 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-06-16 16:43:59 +0700
commitad3677ba03880180873f27ac18ba841b81b2db14 (patch)
tree27583b6e5e9c52286e2ceb2761e5c1e9fe0f5e47 /web_notify/views
parente6e43d9e597551be2f8a1bad3fe400b60c102361 (diff)
Add web_notify addons
Diffstat (limited to 'web_notify/views')
-rw-r--r--web_notify/views/res_users_demo.xml58
-rw-r--r--web_notify/views/web_notify.xml31
2 files changed, 89 insertions, 0 deletions
diff --git a/web_notify/views/res_users_demo.xml b/web_notify/views/res_users_demo.xml
new file mode 100644
index 0000000..65bc72a
--- /dev/null
+++ b/web_notify/views/res_users_demo.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!-- Copyright 2018 Aitor Bouzas <aitor.bouzas@adaptivecity.com>
+ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
+<odoo>
+ <record id="view_users_form_simple_modif_inherit" model="ir.ui.view">
+ <field name="name">res.users.form.simple.view.modif.inherit</field>
+ <field name="model">res.users</field>
+ <field name="inherit_id" ref="base.view_users_form" />
+ <field name="arch" type="xml">
+ <xpath expr="//notebook/page[1]" position="after">
+ <page string="Test web notify" name="test_web_notify">
+ <group>
+ <group>
+ <button
+ name="notify_success"
+ type="object"
+ string="Test success notification"
+ class="oe_highlight"
+ />
+ </group>
+ <group>
+ <button
+ name="notify_danger"
+ type="object"
+ string="Test danger notification"
+ class="oe_highlight"
+ />
+ </group>
+ <group>
+ <button
+ name="notify_warning"
+ type="object"
+ string="Test warning notification"
+ class="oe_highlight"
+ />
+ </group>
+ <group>
+ <button
+ name="notify_info"
+ type="object"
+ string="Test info notification"
+ class="oe_highlight"
+ />
+ </group>
+ <group>
+ <button
+ name="notify_default"
+ type="object"
+ string="Test default notification"
+ class="oe_highlight"
+ />
+ </group>
+ </group>
+ </page>
+ </xpath>
+ </field>
+ </record>
+</odoo>
diff --git a/web_notify/views/web_notify.xml b/web_notify/views/web_notify.xml
new file mode 100644
index 0000000..70fca12
--- /dev/null
+++ b/web_notify/views/web_notify.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<odoo>
+ <template
+ id="assets_backend"
+ name="web_notify assets"
+ inherit_id="web.assets_backend"
+ >
+ <link
+ rel="stylesheet"
+ type="text/scss"
+ href="/web/static/src/scss/webclient.scss"
+ position="after"
+ >
+ <link
+ rel="stylesheet"
+ type="text/scss"
+ href="/web_notify/static/src/scss/webclient.scss"
+ />
+ </link>
+ <xpath expr="." position="inside">
+ <script
+ type="text/javascript"
+ src="/web_notify/static/src/js/web_client.js"
+ />
+ <script
+ type="text/javascript"
+ src="/web_notify/static/src/js/widgets/notification.js"
+ />
+ </xpath>
+ </template>
+</odoo>