blob: 7b4d9c36f8bc778b1d9284a0f383c5aabf98cab5 (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="sale_order_portal_content_inherit_sale_quotation_builder" name="Order Design" inherit_id="sale.sale_order_portal_content">
<xpath expr="//div[@id='informations']" position="after">
<div t-field="sale_order.website_description" class="oe_no_empty"/>
<t t-set="product_tmpl_ids" t-value="[]"/>
<t t-foreach="sale_order.order_line" t-as="line">
<t t-if="line.product_id.product_tmpl_id.id not in product_tmpl_ids">
<t t-set="product_tmpl_ids" t-value="product_tmpl_ids + [line.product_id.product_tmpl_id.id]"/>
<a t-att-id="line.id"/>
<div class="alert alert-info alert-dismissable mt16 css_non_editable_mode_hidden o_not_editable" t-ignore="True" role="status">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">×</button>
Product: <strong t-esc="line.product_id.name"/>:
this content will appear on the quotation only if this
product is not removed.
</div>
<div t-att-class="'oe_no_empty' if line.website_description else 'oe_no_empty d-print-none'" t-field="line.website_description"/>
</t>
</t>
</xpath>
</template>
<!-- Template to edit the quotation template with the website editor -->
<template id="so_template" name="SO Template">
<t t-call="website.layout">
<body>
<t t-set="o_portal_fullwidth_alert">
<t t-call="portal.portal_back_in_edit_mode">
<t t-set="backend_url" t-value="'/web#model=%s&id=%s&action=%s&view_type=form' % (template._name, template.id, request.env.ref('sale_management.sale_order_template_action').id)"/>
<t t-set="custom_html">This is a preview of the sale order template.</t>
</t>
</t>
<div class="container o_sale_order">
<div class="row mt16">
<div class="col-lg-9 ml-auto">
<div class="alert alert-info" t-ignore="True" role="status">
<p>
<strong>Template Header:</strong> this content
will appear on all quotations using this
template.
</p>
<p class="text-muted">
Titles with style <i>Heading 1</i> and
<i>Heading 2</i> will be used to generate the
table of content automatically.
</p>
</div>
<div id="template_introduction" t-field="template.website_description" class="oe_no_empty"/>
<t t-set="product_tmpl_ids" t-value="[]"/>
<t t-foreach="template.sale_order_template_line_ids" t-as="line">
<t t-if="line.product_id.product_tmpl_id.id not in product_tmpl_ids">
<t t-set="product_tmpl_ids" t-value="product_tmpl_ids + [line.product_id.product_tmpl_id.id]"/>
<div class="alert alert-info mt16" t-ignore="True" role="status">
Product: <strong t-esc="line.product_id.name"/>:
this content will appear on the quotation only if this
product is put on the quote.
</div>
<div t-field="line.website_description" class="oe_no_empty"/>
</t>
</t>
<t t-set="product_tmpl_ids" t-value="[]"/>
<t t-foreach="template.sale_order_template_option_ids" t-as="option_line">
<t t-if="option_line.product_id.product_tmpl_id.id not in product_tmpl_ids">
<t t-set="product_tmpl_ids" t-value="product_tmpl_ids + [option_line.product_id.product_tmpl_id.id]"/>
<div class="alert alert-info mt16" t-ignore="True" role="status">
Optional Product: <strong t-esc="option_line.product_id.name"/>:
this content will appear on the quotation only if this
product is used in the quote.
</div>
<div t-field="option_line.website_description" class="oe_no_empty"/>
</t>
</t>
<section id="terms" class="container" t-if="template.note">
<h1 t-ignore="True">Terms & Conditions</h1>
<p t-field="template.note"/>
</section>
</div>
</div>
</div>
</body>
</t>
</template>
<template id="brand_promotion" inherit_id="website.brand_promotion">
<xpath expr="//t[@t-call='web.brand_promotion_message']" position="replace">
<t t-call="web.brand_promotion_message">
<t t-set="_message">
An awesome <a target="_blank" href="https://www.odoo.com/page/crm?utm_source=db&utm_medium=portal">Open Source CRM</a>
</t>
<t t-set="_utm_medium" t-valuef="portal"/>
</t>
</xpath>
</template>
</odoo>
|