Debian Codegraph @

addons/crm_iap_mine/views/mail_templates.xml

raw
1 <?xml version="1.0" encoding="utf-8"?>
2
3 <odoo>
4 <template id="enrich_company" inherit_id="iap_mail.enrich_company">
5 <xpath expr="//div[hasclass('o_partner_autocomplete_enrich_info')]" position="inside">
6 <div class="col-sm-12 row m-0 p-0">
7 <div t-if="vat" class="d-flex my-1 p-0 col-sm-3">
8 <i class="fa fa-fw me-2 fa-solid fa-id-card text-primary"/>
9 <b>Tax ID</b>
10 </div>
11 <div t-if="vat" class="my-1 col-sm-9" t-out="vat" />
12 <div t-if="country" class="d-flex my-1 p-0 col-sm-3">
13 <i class="fa fa-fw me-2 fa-address-book text-primary"/>
14 <b>Address</b>
15 </div>
16 <div class="my-1 col-sm-9">
17 <div class="o_address_format">
18 <div t-if="zip_code">
19 <div t-if="street" class="o_address_street" t-out="street"/>
20 <div t-if="street2" class="o_address_street" t-out="street2"/>
21 <div>
22 <span t-if="city" t-out="city"/>
23 <span t-if="zip_code" t-out="zip_code"/>
24 <span t-if="state" t-out="state"/>
25 <span t-if="state_name" t-out="state_name"/>
26 </div>
27 <div t-if="country" class="o_address_country" t-out="country"/>
28 </div>
29 </div>
30 </div>
31 <div t-if="website" class="d-flex my-1 p-0 col-sm-3">
32 <i class="fa fa-fw me-2 fa-globe text-primary"/>
33 <b>Website</b>
34 </div>
35 <div t-if="website" class="col-sm-9">
36 <a target="_blank" t-attf-href="https://{{website}}" t-out="website" style="font-weight:normal; padding: 2px 0px; margin: 1px 0px; border-radius: 13px; display: inline-block;"/>
37 </div>
38 <div t-if="unspsc_codes" class="d-flex my-1 p-0 col-sm-3">
39 <i class="fa fa-fw me-2 fa-cube text-primary"/>
40 <b>Industries</b>
41 </div>
42 <div t-if="unspsc_codes" class="col-sm-9">
43 <t t-foreach="unspsc_codes" t-as="tag_item">
44 <label t-out="tag_item[1]" class="o_tag o_tag_color_7" style="font-weight:normal; padding: 2px 10px; margin: 1px 0px; border-radius: 13px; display: inline-block;"/>
45 </t>
46 </div>
47 </div>
48 <t t-if="people_data">
49 <t t-set="hasPhoneNumbers" t-value="any([people['phone'] for people in people_data])"/>
50 <div style="font-size:16px; margin: 9px 0;">
51 <b>Contacts</b>
52 </div>
53 <table style="width:100%;
54 border-top-style: solid;border-top-color: #eeeeee;border-top-width: 1px;
55 border-bottom-style: solid;border-bottom-color: #eeeeee;border-bottom-width: 1px;
56 border-start-style: solid;border-start-color: #eeeeee;border-start-width: 1px;
57 border-end-style: solid;border-end-color: #eeeeee;border-end-width: 1px;" t-if="people_data">
58 <thead>
59 <tr style="background-color: #eeeeee">
60 <th t-attf-style="padding: 5px; width: {{hasPhoneNumbers and '30%;' or '50%;'}}">
61 <img style="vertical-align: text-top;" src="mail/font_to_img/61447/rgb(102,102,102)/13"/>
62 Name
63 </th>
64 <th t-attf-style="padding: 5px; width: {{hasPhoneNumbers and '40%;' or '50%;'}}">
65 <img style="vertical-align: text-top;" src="mail/font_to_img/61664/rgb(102,102,102)/13"/>
66 Email
67 </th>
68 <th style="padding: 5px; width: 30%;" t-if="hasPhoneNumbers">
69 <img style="vertical-align: text-top;" src="mail/font_to_img/61589/rgb(102,102,102)/13"/>
70 Phone
71 </th>
72 </tr>
73 </thead>
74 <tbody>
75 <t t-foreach="people_data" t-as="people">
76 <tr t-att-style="people_odd and 'background-color:#eeeeee' or None">
77 <td style="padding: 5px">
78 <t t-set="fullName" t-value="people['full_name'] or ''"/>
79 <t t-set="title" t-value="people['title'] or ''"/>
80 <t t-if="fullName">
81 <h5 style="margin: 0;"><t t-esc="fullName"/><t t-if="title">,</t></h5>
82 </t>
83 <small t-esc="title" t-if="title"/>
84 </td>
85 <td style="padding: 5px">
86 <a t-if="people['email']" t-attf-href="mailto:{{people['email']}}" target="_top">
87 <t t-esc="people['email']"/>
88 </a>
89 </td>
90 <td style="padding: 5px" t-if="hasPhoneNumbers">
91 <a t-if="people['phone']" t-attf-href="tel:{{people['phone']}}">
92 <t t-esc="people['phone']"/>
93 </a>
94 </td>
95 </tr>
96 </t>
97 </tbody>
98 </table>
99 </t>
100 </xpath>
101 </template>
102 </odoo>