File: timesheet.xml

package info (click to toggle)
tryton-modules-project 7.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 564 kB
  • sloc: python: 838; xml: 467; makefile: 11; sh: 3
file content (24 lines) | stat: -rw-r--r-- 1,117 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data>
        <record model="ir.action.act_window" id="act_timesheet_line_form_work">
            <field name="name">Timesheet Lines</field>
            <field name="res_model">timesheet.line</field>
            <field name="domain"
                eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('work.origin.id', '=', Eval('active_id'), 'project.work'), ('work.origin.id', 'in', Eval('active_ids'), 'project.work'))]"
                pyson="1"/>
            <field
                name="context"
                eval="{'project.work': Eval('active_ids')}"
                pyson="1"/>
        </record>
        <record model="ir.action.keyword"
            id="act_timesheet_line_form_work_keyword1">
            <field name="keyword">form_relate</field>
            <field name="model">project.work,-1</field>
            <field name="action" ref="act_timesheet_line_form_work"/>
        </record>
    </data>
</tryton>