Newer
Older
<?xml version="1.0"?>
<!-- Copyright 2019 Le Filament
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<data>
<!-- Tree View Timesheet CG -->
<record id="view_cgscop_hr_timesheet_line_tree" model="ir.ui.view">
<field name="name">account.analytic.line.timesheet.cgscop</field>
<field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
<field name="arch" type="xml">
<field name="name" position="replace"/>
<field name="project_id" position="attributes" >
<attribute name="options">{'no_create_edit': True}</attribute>
<attribute name="string">Code activité UR</attribute>
</field>
<field name="project_id" position="after" >
<field name="cgscop_timesheet_code_id" readonly="1" class="td-ellipsis"/>
<field name="partner_id" domain="[('is_company', '=', True)]" class="td-ellipsis" />
<field name="name" class="td-minwidth" />
<field name="ur_financial_system_id" options="{'no_create_edit': True}"/>
</field>
<field name="task_id" position="replace"/>
<field name="unit_amount" widget="timesheet_uom" sum="Total"/>
</field>
</record>
<!-- Pivot View Timesheet CG -->
<record id="view_cgscop_hr_timesheet_line_pivot" model="ir.ui.view">
<field name="name">account.analytic.line.timesheet.cgscop.pivot</field>
<field name="model">account.analytic.line</field>
<field name="arch" type="xml">
<pivot string="Rapport">
<field name="project_id" type="row"/>
<field name="date" type="col"/>
<field name="unit_amount" type="measure"/>
</pivot>
</field>
</record>
<!-- Hérite l'action de la fenetre -->
<record id="hr_timesheet.act_hr_timesheet_line" model="ir.actions.act_window">
<field name="view_mode">tree,form,pivot,graph</field>
</record>