summaryrefslogtreecommitdiff
path: root/fixco_custom/views/webhook_ginee.xml
blob: 3dda237fa2b1cd1e38555777b36a42e7c7a25dff (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
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="webhook_ginee_tree" model="ir.ui.view">
        <field name="name">webhook.ginee.tree</field>
        <field name="model">webhook.ginee</field>
        <field name="arch" type="xml">
            <tree default_order="create_date desc">
                <field name="json_ginee"/>
                <field name="execute_status"/>
                <field name="create_date" optional="hide"/>
            </tree>
        </field>
    </record>

    <record id="webhook_ginee_form" model="ir.ui.view">
        <field name="name">webhook.ginee.form</field>
        <field name="model">webhook.ginee</field>
        <field name="arch" type="xml">
            <form>
                <header>
                    <button name="execute_queue"
                        string="Create Detail Order"
                        type="object"
                    />
                </header>
                <sheet>
                    <group>
                        <group>
                            <field name="json_ginee" readonly="1"/> 
                            <field name="execute_status" readonly="1"/> 
                        </group>
                    </group>
                </sheet>
                <div class="oe_chatter">
                    <field name="message_follower_ids" widget="mail_followers"/>
                    <field name="message_ids" widget="mail_thread"/>
                </div>
            </form>
        </field>
    </record>

    <record id="webhook_ginee_view_search" model="ir.ui.view">
        <field name="name">webhook.ginee.search.view</field> <!-- Made the name more descriptive -->
        <field name="model">webhook.ginee</field>
        <field name="arch" type="xml">
            <search string="Search Webhook Ginee">
                <field name="json_ginee"/>
            </search>
        </field>
    </record>    

    <record id="webhook_ginee_action" model="ir.actions.act_window">
        <field name="name">Webhook Ginee</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">webhook.ginee</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem
            action="webhook_ginee_action"
            id="webhook_ginee"
            parent="sale.product_menu_catalog"
            name="Webhook Ginee"
            sequence="1"
    />
</odoo>