Advertisement
rht_odoo

[QW][4113403]change_line_name_to_product_sale_description

Aug 19th, 2024 (edited)
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.86 KB | None | 0 0
  1. <data>
  2.     <!--
  3.    # Done by RHT on the 14/08/2024
  4.    # Pastebin : https://pastebin.com/NHnAFhiu
  5.    # Need : to only have the sales description on the portal instead of the so line description
  6.    # Task : https://www.odoo.com/odoo/project/5686/tasks/4113403
  7.    -->
  8.     <xpath expr="//a[@t-if='line.product_id.website_published']" position="replace">
  9.         <a t-if="line.product_id.website_published" t-att-href="line.product_id.website_url" class="d-block text-wrap" style="max-width: 35vw">
  10.             <span t-field="line.x_studio_description"/>
  11.         </a>
  12.     </xpath>
  13.      <xpath expr="//t[@t-if='not line.product_id.website_published']" position="replace">
  14.         <t t-if="not line.product_id.website_published">
  15.             <span t-field="line.x_studio_description" class="d-block text-wrap" style="max-width: 35vw"/>
  16.         </t>
  17.     </xpath>
  18. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement