Skip to content
Snippets Groups Projects
hr_timesheet.xml 1.46 KiB
Newer Older
  • Learn to ignore specific revisions
  • Benjamin's avatar
    Benjamin committed
    <?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.tree</field>
                <field name="inherit_id" ref="hr_timesheet.hr_timesheet_line_tree"/>
                <field name="model">account.analytic.line</field>
                <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" string="Contact"/>
                        <field name="name" style="min-width: 200px" />
                        <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>
    
        </data>
    </odoo>