Advertisement
rht_odoo

[QW][4642215]task_portal_form

Mar 12th, 2025 (edited)
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.97 KB | None | 0 0
  1. <data>
  2.     <!--
  3.    Done by RHT on the 12/03/2025
  4.    Need : Adapt the portal task form view
  5.    Task : https://www.odoo.com/odoo/project.task/4642215
  6.    Pastebin : https://pastebin.com/JmicE70N
  7.    -->
  8.     <xpath expr="//div[@name='portal_my_task_allocated_hours']" position="replace"/>
  9.     <xpath expr="//div[@t-if='task.allocated_hours &gt; 0 and allow_timesheets']" position="replace"/>
  10.     <xpath expr="//div[@t-if='task.planned_date_begin']" position="replace">
  11.             <div t-if="task.planned_date_begin">
  12.                 <strong>Date:</strong>
  13.                 <span t-field="task.planned_date_begin" t-options="{'widget': 'date'}"/>
  14.             </div>
  15.     </xpath>
  16.     <xpath expr="//div[@name='amount_due']" position="replace">
  17.         <div name="amount_due" t-if="task.sale_line_id.amount_to_invoice &gt; 0"><strong>Montant Dû:</strong>
  18.             <span t-field="task.sale_line_id.amount_to_invoice"/>
  19.         </div>
  20.        
  21.     </xpath>
  22.      
  23. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement