Debian Codegraph @

addons/l10n_din5008_purchase/report/din5008_purchase_order_templates.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="utf-8"?>
2 <odoo>
3 <template id="report_common_purchase_din5008_template_document_information">
4 <div class="information_block" t-if="o and o._name=='purchase.order'">
5 <table>
6 <tr t-if="o.name">
7 <td t-if="o.state == 'draft'">Request for Quotation No.:</td>
8 <td t-elif="o.state in {'sent', 'to approve', 'purchase'}">Purchase Order No.:</td>
9 <td t-elif="o.state == 'cancel'">Cancelled Purchase Order No.:</td>
10 <td><t t-out="o.name"/></td>
11 </tr>
12 <tr t-if="o.user_id">
13 <td>Purchase Representative:</td>
14 <td><t t-out="o.user_id.name"/></td>
15 </tr>
16 <tr t-if="o.partner_ref">
17 <td>Order Reference:</td>
18 <td><t t-out="o.partner_ref"/></td>
19 </tr>
20 <tr t-if="o.date_approve">
21 <td>Order Date:</td>
22 <td><t t-out="o.date_approve" t-options="{'widget': 'date'}"/></td>
23 </tr>
24 <tr t-if="o.date_order">
25 <td>Order Deadline:</td>
26 <td><t t-out="o.date_order" t-options="{'widget': 'date'}"/></td>
27 </tr>
28 <tr t-if="o.date_planned">
29 <td>Expected Arrival:</td>
30 <td><t t-out="o.date_planned" t-options="{'widget': 'date'}"/></td>
31 </tr>
32 <tr t-if="o.incoterm_id">
33 <td>Incoterm:</td>
34 <td><t t-out="o.incoterm_id.code"/></td>
35 </tr>
36 </table>
37 </div>
38 </template>
39 <template id="report_common_purchase_din5008_template_address_block">
40 <tr t-if="o and o._name=='purchase.order'">
41 <td class="shipping_address" t-if="o.dest_address_id">
42 <span class="fw-bold">Shipping Address:</span>
43 <address t-esc="o.dest_address_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}'/>
44 </td>
45 <td class="shipping_address" t-elif="'picking_type_id' in o._fields and o.picking_type_id.warehouse_id">
46 <span class="fw-bold">Shipping Address:</span>
47 <address t-esc="o.picking_type_id.warehouse_id.partner_id" t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}'/>
48 </td>
49 </tr>
50 </template>
51 <template id="report_common_purchase_din5008_template_document_title">
52 <span t-if="o and o._name == 'purchase.order'">
53 <t t-if="o.state in {'draft', 'sent', 'to approve'}">Request for Quotation</t>
54 <t t-elif="o.state == 'purchase'">Purchase Order</t>
55 <t t-elif="o.state == 'cancel'">Cancelled Purchase Order</t>
56 </span>
57 </template>
58 <template id="report_purchaseorder_document" inherit_id="purchase.report_purchaseorder_document">
59 <xpath expr="//t[@t-set='address']" position="after">
60 <t t-set="din5008_document_information">
61 <t t-call="l10n_din5008_purchase.report_common_purchase_din5008_template_document_information"/>
62 </t>
63 <t t-set="din5008_address_block">
64 <t t-call="l10n_din5008_purchase.report_common_purchase_din5008_template_address_block"/>
65 </t>
66 <t t-set="din5008_document_title">
67 <t t-call="l10n_din5008_purchase.report_common_purchase_din5008_template_document_title"/>
68 </t>
69 </xpath>
70 </template>
71 <template id="report_purchasequotation_document" inherit_id="purchase.report_purchasequotation_document">
72 <xpath expr="//t[@t-set='address']" position="after">
73 <t t-set="din5008_document_information">
74 <t t-call="l10n_din5008_purchase.report_common_purchase_din5008_template_document_information"/>
75 </t>
76 <t t-set="din5008_address_block">
77 <t t-call="l10n_din5008_purchase.report_common_purchase_din5008_template_address_block"/>
78 </t>
79 <t t-set="din5008_document_title">
80 <t t-call="l10n_din5008_purchase.report_common_purchase_din5008_template_document_title"/>
81 </t>
82 </xpath>
83 </template>
84 </odoo>