58 lines
3.5 KiB
XML
58 lines
3.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<template id="biz_responsive_web_layout_template" inherit_id="web.layout" name="Bizople Responsive Web Layout">
|
|
<xpath expr="//meta[last()]" position="after">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
|
|
<link rel="stylesheet" type="text/css" href="/spiffy_theme_backend/static/lib/RemixIcon/remixicon.css" />
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="biz_webclient_bootstrap_inherit" inherit_id="web.webclient_bootstrap" name="webclient bootstrap inherit">
|
|
<xpath expr="//t[@t-set='head_web']" position="replace">
|
|
<t t-set="head_web">
|
|
<t t-set="company" t-value="request.env.company.sudo()"></t>
|
|
<t t-set="color_code" t-value="company.spiffy_toobar_color and company.spiffy_toobar_color or '#0097a7'"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
|
|
<!-- Chrome, Firefox OS and Opera -->
|
|
<meta name="theme-color" t-att-content="color_code"/>
|
|
<link rel="icon" sizes="192x192" t-attf-href="/web/image/res.company/#{company.id}/favicon"/>
|
|
|
|
<!-- iOS Safari -->
|
|
<meta name="apple-mobile-web-app-capable" content="yes"/>
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
|
|
<link rel="apple-touch-icon" t-attf-href="/web/image/res.company/#{company.id}/favicon"/>
|
|
|
|
<!-- Windows Phone -->
|
|
<meta name="msapplication-navbutton-color" t-att-content="color_code"/>
|
|
<meta name="msapplication-TileColor" t-att-content="color_code"/>
|
|
<meta name="msapplication-TileImage" t-attf-content="/web/image/res.company/#{company.id}/favicon"/>
|
|
|
|
<script type="text/javascript">
|
|
odoo.__session_info__ = <t t-out="json.dumps(session_info)"/>;
|
|
odoo.reloadMenus = () => fetch(`/web/webclient/load_menus/${odoo.__session_info__.cache_hashes.load_menus}`).then(res => res.json());
|
|
odoo.loadMenusPromise = odoo.reloadMenus();
|
|
// Block to avoid leaking variables in the script scope
|
|
{
|
|
const { user_context, cache_hashes } = odoo.__session_info__;
|
|
// Prefetch translations to speedup webclient. This is done in JS because link rel="prefetch"
|
|
// is not yet supported on safari.
|
|
fetch(`/web/webclient/translations/${cache_hashes.translations}?lang=${user_context.lang}`);
|
|
}
|
|
</script>
|
|
<t t-if="request.httprequest.cookies.get('color_scheme') == 'dark'">
|
|
<t t-call-assets="web.dark_mode_assets_common" t-js="false"/>
|
|
<t t-call-assets="web.dark_mode_assets_backend" t-js="false"/>
|
|
</t>
|
|
<t t-else="">
|
|
<t t-call-assets="web.assets_common" t-js="false"/>
|
|
<t t-call-assets="web.assets_backend" t-js="false"/>
|
|
</t>
|
|
<t t-call-assets="web.assets_common" t-css="false"/>
|
|
<t t-call-assets="web.assets_backend" t-css="false"/>
|
|
<t t-call-assets="web.assets_backend_prod_only" t-css="false"/>
|
|
<t t-call="web.conditional_assets_tests"/>
|
|
</t>
|
|
|
|
</xpath>
|
|
</template>
|
|
</odoo> |