-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
website_templates_disable.xml
41 lines (33 loc) · 1.73 KB
/
website_templates_disable.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- oca-hooks:disable=xml-deprecated-qweb-directive,
xml-not-valid-char-link -->
<!-- Deprecated QWeb directive "t-esc-options". -->
<template id="test_template_1" name="Test Template 1">
<div>
<span t-esc="price" t-esc-options='{"widget": "monetary"}'/>
</div>
</template>
<!-- Deprecated QWeb directive "t-field-options". -->
<template id="test_template_2" name="Test Template 2">
<div class="oe_structure" id="oe_structure_test_template_2_1">
<span>This shows proper usage. Default content is provided but can be modified/replaced by the user!</span>
</div>
<div>
<span t-field="line.image" t-field-options='{"widget": "image"}'/>
</div>
<footer class="oe_structure"/>
</template>
<template id="assets_backend" name="test_module_widget" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<!-- Wrong but is working in odoo web debug mode -->
<link rel="stylesheet" href="/test_module_widget/static/widget.css?v=1"/>
<script type="text/javascript" src="/test_module_affiliation_widget/static/widget.js?v=1"/>
<!-- Correct but is working working odoo web debug mode also -->
<link rel="stylesheet" href="/test_module_widget/static/widget.css"/>
<script type="text/javascript" src="/test_module_affiliation_widget/static/widget.js"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"/>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js?_ca=235"/>
</xpath>
</template>
</odoo>