Advertisement
rht_odoo

[QW][4642215]task_portal_add_infectation_and_start_date_remove_allocated_time

Mar 12th, 2025 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.55 KB | None | 0 0
  1. <data>
  2.     <!--
  3.    Done by RHT on the 12/03/2025
  4.    Need : The customer wants to go live but he has some issues with the fields available on the portal. / He doesn't want the customer to see the time he passed working for them so we need to remove this from the different view on the customer portal -> He sells at fix price and doesn't want to let the customer knows that he paid 100€ for 15 Minutes for example./ He needs to show the degree of infectation as well on the different tasks. 
  5.    Task : https://www.odoo.com/odoo/project.task/4642215
  6.    Pastebin : https://pastebin.com/Cv1afAKH
  7.    -->
  8.  
  9.     <xpath expr="//t[@t-set='number_of_header']" position="attributes">
  10.         <attribute name="t-value">9</attribute>
  11.     </xpath>
  12.     <xpath expr="//th[5]" position="after">
  13.         <th name="infectation_level" class="text-end">
  14.            <span>Degré d'infestation</span>
  15.         </th>
  16.         <th name="start_date" class="text-end">
  17.             <span>Date</span>
  18.         </th>
  19.     </xpath>
  20.     <xpath expr="//td[5]" position="after">
  21.         <td name="infectation_level" align="right" class="text-end">
  22.             <span title="Degré d'infestation" t-out="task.x_studio_degr_dinfestation"/>
  23.         </td>
  24.         <td name="start_date" align="right" class="text-end">
  25.             <span title="Start Date" t-out="task.planned_date_begin" t-options="{'widget': 'date'}"/>
  26.         </td>
  27.     </xpath>
  28.     <xpath expr="//t[@t-if='not project or project.allow_timesheets']" position="replace"/>
  29.     <xpath expr="//td[9]" position="replace"/>
  30. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement