summaryrefslogtreecommitdiff
path: root/fixco_custom/views/shipment_group.xml
blob: da87f405e4b50df6e9a0ca78962f31321b3e9c8e (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="shipment_group_tree" model="ir.ui.view">
        <field name="name">shipment.group.tree</field>
        <field name="model">shipment.group</field>
        <field name="arch" type="xml">
            <tree default_order="create_date desc">
                <field name="number"/>
                <field name="total_line" readonly="1"/>
                <field name="shipment_methods" readonly="1"/>
            </tree>
        </field>
    </record>

    <record id="shipment_group_form" model="ir.ui.view">
        <field name="name">shipment.group.form</field>
        <field name="model">shipment.group</field>
        <field name="arch" type="xml">
            <form>
                <header>
                    <button name="get_status"
                            string="Get Status"
                            type="object"
                            class="oe_highlight"
                    />
                    <button name="sync_product_to_picking_line"
                            string="Sync Picking Line"
                            type="object"
                            class="oe_highlight"
                    />
                </header>
                <sheet>
                    <div class="oe_button_box" name="button_box">
                        <button type="object"  name="action_view_related_line"
                            class="oe_stat_button"
                            icon="fa-pencil-square-o">
                            <field name="related_count" widget="statinfo" string="Related Line"/>
                        </button>
                    </div>
                    <group>
                        <group>
                            <field name="number" readonly="1"/>
                            <field name="total_line" readonly="1"/>
                            <field name="shipment_methods" readonly="1"/>
                        </group>
                    </group>
                    <notebook>
                        <page string="Picking Line">
                            <field name="picking_lines">
                                <tree editable="bottom">
                                    <field name="scan_receipt"/>
                                    <field name="picking_id"/>
                                    <field name="carrier"/>
                                    <field name="invoice_marketplace"/>
                                    <field name="order_reference" optional="hide"/>
                                    <field name="status"/>
                                </tree>
                            </field>
                        </page>
                        <page string="Line">
                            <field name="shipment_line">
                                <tree editable="bottom">
                                    <field name="product_id"/>
                                    <field name="carrier"/>
                                    <field name="invoice_marketplace"/>
                                    <field name="order_reference" optional="hide"/>
                                    <field name="picking_id"/>
                                </tree>
                            </field>
                        </page>
                    </notebook>
                </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="shipment_group_view_search" model="ir.ui.view">
        <field name="name">shipment.group.search.view</field> <!-- Made the name more descriptive -->
        <field name="model">shipment.group</field>
        <field name="arch" type="xml">
            <search string="Search Shipment Group">
                <field name="number"/>
                <field name="receipt"/>
            </search>
        </field>
    </record>

    <record id="shipment_group_action" model="ir.actions.act_window">
        <field name="name">Shipment Group</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">shipment.group</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem
            action="shipment_group_action"
            id="shipment_group"
            parent="stock.menu_stock_warehouse_mgmt"
            name="Shipment Group"
            sequence="1"
    />
</odoo>