Advertisement
rht_odoo

[4413771] [Pred] - edit address block on follow-up report (letter)

Dec 18th, 2024 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.42 KB | None | 0 0
  1. <data>
  2.   <!--
  3.  #Done by RHT on the 18/12/2024
  4.  #Need : remove the phone from the follow-up letter
  5.  #Task : https://www.odoo.com/odoo/project/5686/tasks/4413771?debug=1
  6.  #Pastebin : https://pastebin.com/usHbGpM2
  7.  -->
  8.   <xpath expr="//t" position="replace">
  9. <div t-if="context.get(&quot;mail&quot;) != True" class="print_only" style="margin-bottom: 20px;">
  10.                 <t t-if="invoice_address_id" t-set="partner_addr" t-value="invoice_address_id"/>
  11.                 <t t-else="" t-set="partner_addr" t-value="partner"/>
  12.                 <t t-if="context.get('snailmail_layout')" t-set="contact_widget_fields" t-value="['address', 'name']"/>
  13.                 <t t-else="" t-set="contact_widget_fields" t-value="['address', 'name']"/>
  14.                 <div class="row fallback_header">
  15.                     <div class="col-5 offset-7">
  16.                         <div t-field="partner_addr.self" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: contact_widget_fields, &quot;no_marker&quot;: True}"/>
  17.                         <span t-field="partner_addr.vat"/>
  18.                     </div>
  19.                 </div>
  20.                 <p style="margin-top: 35px;">
  21.                     Date: <span t-esc="today" t-options="{'widget': 'date'}"/><br/>
  22.                     <t t-if="partner_addr.ref">Customer ref: <span t-field="partner_addr.ref"/></t>
  23.                 </p>
  24.             </div>
  25.             </xpath>
  26. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement