Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 12.0
1 résultat

LICENSE

Blame
  • Ce projet est sous licence GNU Affero General Public License v3.0. En savoir plus
    ur_month_timesheet.xml 2,24 Kio
    <?xml version="1.0" ?>
    <!-- Copyright 2019 Le Filament
         License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
    <odoo>
        <data>
            <record id="view_ur_month_timesheet_tree" model="ir.ui.view">
                <field name="name">ur.month.timesheet.tree</field>
                <field name="model">ur.month.timesheet</field>
                <field name="arch" type="xml">
                    <tree editable='top'>
                        <field name="year" required="1" />
                        <field name="month" required="1" />
                        <field name="working_time" required="1" />
                        <field
                            name="ur_id"
                            options="{'no_open': True, 'no_create': True}"
                            readonly="1"
                        />
                        <field
                            name="company_id"
                            groups="base.group_no_one"
                            options="{'no_open': True, 'no_create': True}"
                        />
                    </tree>
                </field>
            </record>
    
            <record id="action_ur_month_timesheet" model="ir.actions.act_window">
                <field name="name">Temps de travail mensuel</field>
                <field name="res_model">ur.month.timesheet</field>
                <field name="view_mode">tree</field>
            </record>
    
            <record id="action_ur_month_timesheet_show" model="ir.actions.client">
                <field name="name">Temps de travail théorique</field>
                <field name="tag">cgscop_timesheet.ur_month_timesheet</field>
                <field name="target">new</field>
                <field name="binding_model_id" ref="model_ur_month_timesheet" />
                <field name="binding_type">action</field>
            </record>
    
            <menuitem
                id="menu_ur_month_timesheet"
                name="Temps de travail mensuel"
                parent="hr_timesheet.hr_timesheet_menu_configuration"
                action="action_ur_month_timesheet"
                sequence="50"
                groups="cgscop_partner.group_ur_list_modif"
            />
    
            <menuitem
                id="menu_ur_month_timesheet_show"
                parent="hr_timesheet.menu_hr_time_tracking"
                action="action_ur_month_timesheet_show"
                sequence="50"
            />
    
        </data>
    </odoo>