summaryrefslogtreecommitdiff
path: root/fixco_custom/views/vit_kecamatan.xml
blob: 09ae6920c61b98dc74dd2eb32489e59d3b269cc5 (plain)
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
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="vit_kecamatan_tree" model="ir.ui.view">
        <field name="name">vit.kecamatan.tree</field>
        <field name="model">vit.kecamatan</field>
        <field name="arch" type="xml">
            <tree>
                <field name="id"/>
                <field name="name"/>
                <field name="kota_id"/>
            </tree>
        </field>
    </record>

    <record id="vit_kecamatan_form" model="ir.ui.view">
        <field name="name">vit.kecamatan.form</field>
        <field name="model">vit.kecamatan</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <div class="oe_title">
                        <h1>
                            <field name="name" required="1"/>
                        </h1>
                    </div>
                    <group>
                        <group>
                            <field name="kota_id"/>
                        </group>
                        <group/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="vit_kecamatan_action" model="ir.actions.act_window">
        <field name="name">Kecamatan</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">vit.kecamatan</field>
        <field name="view_mode">tree,form</field>
        <field name="help" type="html">
            <p class="o_view_nocontent_smiling_face">
                Add Kecamatan!
            </p>
        </field>
    </record>

    <menuitem
            id="vit_kecamatan_menu"
            name="Kecamatan"
            parent="contacts.res_partner_menu_config"
            sequence="4"
            action="vit_kecamatan_action"
    />
</odoo>