Advertisement
rht_odoo

[QW][4724265]address_report_invoice_document

May 7th, 2025 (edited)
585
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.93 KB | None | 0 0
  1. <data>
  2.     <!--
  3.    Done by RHT on the 07/05/2025
  4.    Need : only keep the customer address
  5.    Task : https://www.odoo.com/odoo/project.task/4724265
  6.    Pastbin : https://pastebin.com/2WXkw13f
  7.    -->
  8.     <xpath expr="//t/div" position="replace">
  9.         <div class="offset-col-6 col-6" name="no_shipping">
  10.             <t t-set="address">
  11.                 <address class="mb-0" t-field="o.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
  12.                 <div t-if="o.partner_id.vat" id="partner_vat_no_shipping">
  13.                     <t t-if="o.company_id.account_fiscal_country_id.vat_label" t-out="o.company_id.account_fiscal_country_id.vat_label" id="inv_tax_id_label"/>
  14.                     <t t-else="">Tax ID</t>: <span t-field="o.partner_id.vat"/>
  15.                 </div>
  16.             </t>
  17.         </div>
  18.     </xpath>
  19. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement