Skip to content
Snippets Groups Projects
Commit b5a7fb0a authored by Juliana's avatar Juliana
Browse files

changement widget time pour impression + ajout droit + bug rapport total

parent 4db42986
No related branches found
No related tags found
No related merge requests found
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_cgscop_timesheet_code,access_cgscop_timesheet_code,model_cgscop_timesheet_code,base.group_user,1,0,0,0
access_cgscop_timesheet_code_cg_manager,access_cgscop_timesheet_code_cg,model_cgscop_timesheet_code,cgscop_partner.group_cg_administrator,1,1,1,1
access_ur_financial_system,access_ur_financial_system,model_ur_financial_system,base.group_user,1,0,0,0
access_ur_financial_system_ur_manager,access_ur_financial_system_ur,model_ur_financial_system,cgscop_partner.group_ur_list_modif,1,1,1,1
access_ur_financial_system_cg_manager,access_ur_financial_system_cg,model_ur_financial_system,cgscop_partner.group_cg_administrator,1,1,1,1
......
......@@ -59,7 +59,9 @@
<field name="task_id" position="attributes">
<attribute name="invisible">True</attribute>
</field>
<field name="unit_amount" widget="timesheet_uom" sum="Total"/>
<field name="unit_amount" position="attributes">
<attribute name="widget">float_time</attribute>
</field>
<field name="unit_amount" position="after">
<field name="ur_financial_system_id" options="{'no_open': True, 'no_create': True}"/>
</field>
......
......@@ -43,14 +43,14 @@
<td><span t-field="line.ur_financial_system_id"/></td>
<td class="text-right"><span t-field="line.unit_amount" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/></td>
</tr>
<tr>
<td />
<td />
<td />
<td class="text-right"><strong>Total</strong></td>
<td class="text-right"><strong t-esc="sum(o.timesheet_ids.mapped('unit_amount'))" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/></td>
</tr>
</t>
<tr>
<td />
<td />
<td />
<td class="text-right"><strong>Total</strong></td>
<td class="text-right"><strong t-esc="sum(o.timesheet_ids.mapped('unit_amount'))" t-options="{'widget': 'duration', 'digital': True, 'unit': 'hour', 'round': 'minute'}"/></td>
</tr>
</tbody>
</table>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment