File: work.xml

package info (click to toggle)
tryton-modules-project-revenue 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 200 kB
  • ctags: 80
  • sloc: python: 415; xml: 143; makefile: 2
file content (101 lines) | stat: -rw-r--r-- 4,507 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?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.ui.view" id="work_view_form">
            <field name="model">project.work</field>
            <field name="inherit" ref="project.work_view_form"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath expr="/form/notebook/page[@id=&quot;general&quot;]/label[@name=&quot;hours&quot;]" position="replace"/>

                    <xpath expr="/form/notebook/page[@id=&quot;general&quot;]/field[@name=&quot;hours&quot;]" position="replace">
                        <group colspan="2" col="2" id="cost">
                            <separator string="Cost" id="cost" colspan="2"/>
                            <label name="cost"/>
                            <field name="cost"/>
                            <label name="hours"/>
                            <field name="hours" widget="float_time" float_time="company_work_time"/>
                        </group>
                    </xpath>

                    <xpath expr="/form/notebook/page[@id=&quot;general&quot;]/group[@id=&quot;effort&quot;]" position="replace">
                        <group colspan="2" col="2" id="revenue">
                            <separator string="Revenue" id="revenue" colspan="2"/>
                            <label name="revenue"/>
                            <field name="revenue"/>
                            <label name="product"/>
                            <field name="product"/>
                            <label name="list_price"/>
                            <field name="list_price"/>
                            <label name="effort"/>
                            <field name="effort" widget="float_time" float_time="company_work_time"/>
                            <label name="total_effort"/>
                            <field name="total_effort" widget="float_time" float_time="company_work_time"/>
                        </group>
                    </xpath>

                    <xpath expr="/form/notebook/page[@id=&quot;children&quot;]/field[@name=&quot;children&quot;]/tree/field[@name=&quot;total_effort&quot;]" position="after">
                        <field name="product"/>
                        <field name="list_price"/>
                        <field name="revenue"/>
                        <field name="cost"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="work_view_tree">
            <field name="model">project.work</field>
            <field name="inherit" ref="project.work_view_tree"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath expr="/tree/field[@name=&quot;total_effort&quot;]" position="after">
                        <field name="product"/>
                        <field name="list_price"/>
                        <field name="revenue"/>
                        <field name="cost"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="work_view_tree2">
            <field name="model">project.work</field>
            <field name="inherit" ref="project.work_view_tree2"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath expr="/tree/field[@name=&quot;total_effort&quot;]" position="after">
                        <field name="product"/>
                        <field name="list_price"/>
                        <field name="cost"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="work_view_tree3">
            <field name="model">project.work</field>
            <field name="inherit" ref="project.work_view_tree3"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath expr="/tree/field[@name=&quot;total_effort&quot;]" position="after">
                        <field name="revenue"/>
                        <field name="cost"/>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>

    </data>
</tryton>