add backend_theme from openworx.nl

This commit is contained in:
santiky 2021-08-07 14:02:32 +02:00
parent 17ecc2e4a0
commit 46d66821ec
Signed by: snt
GPG key ID: A9FD34930EADBE71
70 changed files with 5413 additions and 0 deletions

View file

@ -0,0 +1,20 @@
<?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_v12/static/src/scss/style.scss"/>
<link rel="stylesheet" href="/backend_theme_v12/static/src/scss/sidebar.scss"/>
<script type="application/javascript" src="/backend_theme_v12/static/src/js/sidebar.js"/>
<script type="application/javascript" src="/backend_theme_v12/static/src/js/sidebar-toggle.js"/>
</xpath>
</template>
</data>
</odoo>

View file

@ -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>

View file

@ -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="//div[hasclass('o_main')]//main[hasclass('o_main_content')]" position="before">
<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>

View file

@ -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>

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="menu" inherit_id="web_responsive.apps">
<!-- <xpath expr="//div[hasclass('panel-heading')]"
position="replace" /> -->
<xpath expr="//div[hasclass('dropdown-menu')]" position="after">
<div class="panel-footer" id="appDrawerAppPanelFooter">
<div class="oe_logo">
<img src="/web/binary/company_logo" />
</div>
</div>
</xpath>
</template>
<!-- <template id="webclient_bootstrap"
inherit_id="web_responsive.webclient_bootstrap">
<xpath expr="//i[hasclass('fa-th')]" position="after">
<i class="fa fa-lg fa-chevron-left app-drawer-icon-close"
t-translation="off" aria-hidden="true" />
</xpath>
</template> -->
</odoo>