update misc and fix

This commit is contained in:
Ivan Office
2023-10-10 01:58:51 +08:00
parent 3f53425bc1
commit e9e681a9a4
3 changed files with 23 additions and 12 deletions

View File

@@ -1,13 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="assets_backend" name="app_web_supero2m assets" inherit_id="web.assets_backend">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/app_web_supero2m/static/src/scss/app.scss"/>
</xpath>
<xpath expr="script[last()]" position="after">
<script type="text/javascript" src="/app_web_supero2m/static/src/js/list_renderer.js"/>
</xpath>
</template>
</data>
<!-- sample add same logo-->
<template id="option_header_brand_logo" inherit_id="website.option_header_brand_logo">
<xpath expr="//a" position="after">
<a href="/" t-attf-class="navbar-brand logo #{_link_class}">
<span t-if="website.logo" class="d-lg-none"
t-field="website.logo" t-options="{'widget': 'image', 'width': auto, 'height': 40}" role="img"
t-att-aria-label="'sample Logo of %s' % website.name" t-att-title="website.name"/>
</a>
</xpath>
</template>
<!-- not use from v15-->
<!-- <template id="assets_backend" name="app_web_supero2m assets" inherit_id="web.assets_backend">-->
<!-- <xpath expr="//link[last()]" position="after">-->
<!-- <link rel="stylesheet" type="text/scss" href="/app_web_supero2m/static/src/scss/app.scss"/>-->
<!-- </xpath>-->
<!-- <xpath expr="script[last()]" position="after">-->
<!-- <script type="text/javascript" src="/app_web_supero2m/static/src/js/list_renderer.js"/>-->
<!-- </xpath>-->
<!-- </template>-->
</odoo>