Debian Codegraph @

addons/sale_project/views/project_update_template.xml

raw
1 <?xml version="1.0"?>
2 <odoo>
3
4 <template id="sale_project.milestone_deadline_inherit" inherit_id="project.milestone_deadline">
5 <xpath expr="//t[@t-if=&quot;milestone['deadline']&quot;]" position="before">
6 <t t-if="milestone['quantity_percentage']">
7 <font style="color: rgb(190, 190, 190);">
8 <t t-if="milestone['sale_line_display_name']">
9 (<t t-out="milestone['sale_line_display_name']"/> -
10 </t>
11 <t t-out="100 * milestone['quantity_percentage']"/>%)</font>
12 </t>
13 </xpath>
14 </template>
15
16 <template id="project_update_default_description" inherit_id="project.project_update_default_description">
17 <xpath expr="//tr[hasclass('revenue_data')]" position="replace">
18 <tr>
19 <td t-out="profitability['labels'][revenue['id']]"/>
20 <td class="text-end" t-out="format_monetary(revenue['invoiced'] + revenue['to_invoice'])"/>
21 <td class="text-end" t-out="format_monetary(revenue['to_invoice'])"/>
22 <td class="text-end" t-out="format_monetary(revenue['invoiced'])"/>
23 </tr>
24 <tr>
25 <td colspan="4">
26 <div class="mt-2">
27 <table class="table table-sm table-bordered">
28 <thead>
29 <tr>
30 <td class="w-55" style="font-weight: bolder;">Sales Order Items</td>
31 <td style="font-weight: bolder; text-align: right; width: 15%;">Sold</td>
32 <td style="font-weight: bolder; text-align: right; width: 15%;">Delivered</td>
33 <td style="font-weight: bolder; text-align: right; width: 15%;">Invoiced</td>
34 </tr>
35 </thead>
36
37 <tbody>
38 <tr t-foreach="revenue['sol']" t-as="sol">
39 <td>
40 <t t-out="sol['name']"/>
41 </td>
42 <td class="text-end">
43 <t t-out="sol['product_uom_qty']"/> <t t-out="sol['product_uom_id'][1]"/>
44 </td>
45 <td class="text-end">
46 <t t-out="sol['qty_delivered']"/> <t t-out="sol['product_uom_id'][1]"/>
47 </td>
48 <td class="text-end">
49 <t t-out="sol['qty_invoiced']"/> <t t-out="sol['product_uom_id'][1]"/>
50 </td>
51 </tr>
52 </tbody>
53 </table>
54 </div>
55 </td>
56 </tr>
57 </xpath>
58 </template>
59 </odoo>