summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/user_form_merchant.xml
blob: 230b64254ccdb91681100b39c6f3ebc481d9c7a6 (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
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
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <record id="user_form_merchant_tree" model="ir.ui.view">
        <field name="name">user.form.merchant.tree</field>
        <field name="model">user.form.merchant</field>
        <field name="arch" type="xml">
            <tree create="1" default_order="create_date desc">
                <field name="name_merchant"/>
                <field name="email_company"/>
                <field name="phone"/>
                <field name="description"/>
                <field name="create_date"/>
            </tree>
        </field>
    </record>

    <record id="user_form_merchant_form" model="ir.ui.view">
        <field name="name">user.form.merchant.form</field>
        <field name="model">user.form.merchant</field>
        <field name="arch" type="xml">
            <form create="0">
                <sheet>
                    <group>
                        <group>
                            <field name="name_merchant" />
                            <field name="pic_merchant" />
                            <field name="address" />
                            <field name="state" />
                            <field name="city" />
                            <field name="district" />
                            <field name="subDistrict" />
                            <field name="zip" />
                        </group>
                        <group>
                            <field name="bank_name" />
                            <field name="rekening_name" />
                            <field name="account_number" />
                        </group>
                        <group>
                            <field name="file_dokumenKtpDirut" />
                            <field name="file_kartuNama" />
                            <field name="file_npwp" />
                            <field name="file_sppkp" />
                            <field name="file_suratPernyataan" />
                            <field name="file_fotoKantor" />
                            <field name="file_dataProduk" />
                            <field name="file_pricelist" />
                        </group>
                        <group>
                            <field name="email_company" widget="email"/>
                            <field name="email_sales" widget="email"/>
                            <field name="email_finance" widget="email"/>
                            <field name="phone" widget="phone"/>
                            <field name="mobile" widget="phone"/>
                            <field name="harga_tayang" />
                        </group>
                        <group>
                            <field name="description" />
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="action_user_form_merchant" model="ir.actions.act_window">
        <field name="name">User Form Merchant</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">user.form.merchant</field>
        <field name="view_mode">tree,form</field>
    </record>


    <menuitem
        id="menu_user_form_merchant"
        name="User Form Merchant"
        parent="res_partner_menu_user"
        sequence="1"
        action="action_user_form_merchant"
    />

</odoo>