summaryrefslogtreecommitdiff
path: root/backend_theme_v14/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 17:14:58 +0700
commit1ca3b3df3421961caec3b747a364071c80f5c7da (patch)
tree6778a1f0f3f9b4c6e26d6d87ccde16e24da6c9d6 /backend_theme_v14/views
parentb57188be371d36d96caac4b8d65a40745c0e972c (diff)
initial commit
Diffstat (limited to 'backend_theme_v14/views')
-rw-r--r--backend_theme_v14/views/assets.xml21
-rw-r--r--backend_theme_v14/views/res_company_view.xml17
-rw-r--r--backend_theme_v14/views/sidebar.xml35
-rw-r--r--backend_theme_v14/views/users.xml15
4 files changed, 88 insertions, 0 deletions
diff --git a/backend_theme_v14/views/assets.xml b/backend_theme_v14/views/assets.xml
new file mode 100644
index 0000000..c14e49c
--- /dev/null
+++ b/backend_theme_v14/views/assets.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Copyright 2016, 2019 Openworx.
+ @author Mario Gielissen <mario@openworx.nl>
+ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
+-->
+
+<odoo>
+ <data>
+ <template id="assets_backend" name="Openworx Backend Theme" inherit_id="web.assets_backend">
+ <xpath expr=".">
+ <link rel="stylesheet" href="/backend_theme_v14/static/src/scss/colors.scss"/>
+ <link rel="stylesheet" href="/backend_theme_v14/static/src/scss/style.scss"/>
+ <link rel="stylesheet" href="/backend_theme_v14/static/src/scss/sidebar.scss"/>
+ <script type="application/javascript" src="/backend_theme_v14/static/src/js/sidebar.js"/>
+ <script type="application/javascript" src="/backend_theme_v14/static/src/js/sidebar-toggle.js"/>
+ </xpath>
+ </template>
+ </data>
+</odoo>
diff --git a/backend_theme_v14/views/res_company_view.xml b/backend_theme_v14/views/res_company_view.xml
new file mode 100644
index 0000000..1c870c2
--- /dev/null
+++ b/backend_theme_v14/views/res_company_view.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<odoo>
+ <record id="res_company_form" model="ir.ui.view">
+ <field name="name">res.company.form</field>
+ <field name="model">res.company</field>
+ <field name="inherit_id" ref="base.view_company_form" />
+ <field name="arch" type="xml">
+ <xpath expr="//notebook" position="inside">
+ <page name="background" string="Apps Dashboard">
+ <group name="dashboard_settings">
+ <field name="dashboard_background" widget="image" class="oe_avatar"/>
+ </group>
+ </page>
+ </xpath>
+ </field>
+ </record>
+</odoo> \ No newline at end of file
diff --git a/backend_theme_v14/views/sidebar.xml b/backend_theme_v14/views/sidebar.xml
new file mode 100644
index 0000000..0fa35dd
--- /dev/null
+++ b/backend_theme_v14/views/sidebar.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+ Copyright 2016, 2019 Openworx.
+ @author Mario Gielissen <mario@openworx.nl>
+ License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
+-->
+
+<odoo>
+ <template id="app_sidebar" inherit_id="web.webclient_bootstrap" name="Apps Sidebar">
+ <xpath expr="//t[@t-set='body_classname']" position="after">
+ <div id="app-sidebar" class="app-sidebar-panel">
+<!-- <div class="app-sidebar navbar-collapse collapse"> -->
+ <div class="app-sidebar">
+ <ul id="sidebar" class="app-sidebar-menu">
+ <li class="nav-item" t-as="menu" t-foreach="menu_data['children']" >
+ <t t-set="debug_param" t-value="''"/>
+ <a t-att-href="'/web%s#menu_id=%s&amp;action=' % (debug_param, menu['id'])"
+ t-att-class="'nav-link nav-toggle' if menu.get('children') else 'nav-link '"
+ t-att-data-menu="menu['id']"
+ t-att-data-menu-xmlid="menu.get('xmlid')"
+ t-att-data-action-model="menu['action'] and menu['action'].split(',')[0] or None"
+ t-att-data-action-id="menu['action'] and menu['action'].split(',')[1] or None">
+ <img t-attf-src="/web/image/ir.ui.menu/{{ menu['id'] }}/web_icon_data" t-att-alt="menu['name']" class="app-sidebar-menuitem" t-att-title="menu['name']"/>
+ <span class="title" >
+ <t t-esc="menu['name']"/>
+ </span>
+ </a>
+ </li>
+ </ul>
+ </div>
+ </div>
+ </xpath>
+ </template>
+</odoo>
diff --git a/backend_theme_v14/views/users.xml b/backend_theme_v14/views/users.xml
new file mode 100644
index 0000000..7445e4c
--- /dev/null
+++ b/backend_theme_v14/views/users.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<odoo>
+ <record id="res_users_preferences" model="ir.ui.view">
+ <field name="name">res.users.preferences</field>
+ <field name="model">res.users</field>
+ <field name="inherit_id" ref="base.view_users_form_simple_modif" />
+ <field name="arch" type="xml">
+ <xpath expr="//group[last()]" position="after">
+ <group name="App Sidebar">
+ <field name="sidebar_visible" readonly="0"/>
+ </group>
+ </xpath>
+ </field>
+ </record>
+</odoo>