File: service.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 (57 lines) | stat: -rw-r--r-- 2,125 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
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
<?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="cost_price_view_form">
            <field name="model">company.employee_cost_price</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <![CDATA[
                <form string="Cost Prices" col="2">
                    <label name="date"/>
                    <field name="date"/>
                    <label name="cost_price"/>
                    <field name="cost_price"/>
                    <label name="employee"/>
                    <field name="employee"/>
                </form>
                ]]>
            </field>
        </record>

        <record model="ir.ui.view" id="cost_price_view_tree">
            <field name="model">company.employee_cost_price</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <![CDATA[
                <tree string="Cost Prices">
                    <field name="date"/>
                    <field name="cost_price"/>
                </tree>
                ]]>
            </field>
        </record>


        <record model="ir.ui.view" id="employee_view_form">
            <field name="model">company.employee</field>
            <field name="inherit" ref="company.employee_view_form"/>
            <field name="arch" type="xml">
                <![CDATA[
                <data>
                    <xpath
                        expr="/form/notebook/page[@id=&quot;general&quot;]"
                        position="after">
                        <page string="Cost" id="cost_prices">
                            <label name="cost_price"/>
                            <field name="cost_price"/>
                            <field name="cost_prices" colspan="4"/>
                        </page>
                    </xpath>
                </data>
                ]]>
            </field>
        </record>
    </data>
</tryton>