summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/stock_picking.xml
blob: 8acba608a7e75d93b6e0788c2d8870ce3653adc0 (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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <data>
        <record id="stock_picking_tree_view_inherit" model="ir.ui.view">
            <field name="name">Stock Picking</field>
            <field name="model">stock.picking</field>
            <field name="inherit_id" ref="stock.vpicktree"/>
            <field name="arch" type="xml">
                <tree position="attributes">
                    <attribute name="default_order">create_date desc</attribute>
                </tree>
                <field name="json_popover" position="after">
                    <field name="date_done" optional="hide"/>
                    <field name="date_doc_kirim" optional="hide"/>
                    <field name="driver_departure_date" optional="hide"/>
                    <field name="driver_arrival_date" optional="hide"/>
                    <field name="note_logistic" optional="hide"/>
                    <field name="note" optional="hide"/>
                    <field name="date_reserved" optional="hide"/>
                    <field name="state_reserve" optional="hide"/>
                </field>
                <field name="partner_id" position="after">
                    <field name="purchase_representative_id"/>
                    <field name="status_printed"/>
                </field>
            </field>
        </record>

        <record id="stock_picking_form_view_inherit" model="ir.ui.view">
            <field name="name">Stock Picking</field>
            <field name="model">stock.picking</field>
            <field name="inherit_id" ref="stock.view_picking_form"/>
            <field name="arch" type="xml">
                <button name="action_confirm" position="before">
                    <button name="ask_approval"
                            string="Ask Approval"
                            type="object"
                            attrs="{'invisible': [('is_internal_use', '=', False)]}"
                    />
                    <button name="ask_receipt_approval"
                            string="Received"
                            type="object"
                            attrs="{'invisible': ['|', ('state', 'in', ['done']), ('approval_receipt_status', '=', 'pengajuan1')]}"
                    />
                    <button name="ask_return_approval"
                            string="Ask Return/Acc"
                            type="object"
                            attrs="{'invisible': [('state', 'in', ['draft', 'cancel', 'assigned'])]}"
                    />
                    <button name="action_create_invoice_from_mr"
                            string="Create Bill"
                            type="object"
                            attrs="{'invisible': ['|', ('state', '!=', 'done'), ('name', 'ilike', 'out')]}"
                    />
                    <button name="action_send_to_biteship"
                            string="Biteship"
                            type="object"
                    />
                    <button name="track_envio_shipment"
                            string="Tracking Envio"
                            type="object"
                            attrs="{'invisible': [('carrier_id', '!=', 151)]}"
                    />
                    <button name="action_fetch_lalamove_order"
                            string="Tracking Lalamove"
                            type="object"
                            attrs="{'invisible': [('carrier_id', '!=', 9)]}"
                    />
                </button>
                <field name="backorder_id" position="after">
                    <field name="summary_qty_detail"/>
                    <field name="count_line_detail"/>
                    <field name="dokumen_tanda_terima"/>
                    <field name="dokumen_pengiriman"/>
                </field>
                <field name="weight_uom_name" position="after">
                    <group>
                        <group>
                            <button name="reset_status_printed"
                                    string="Reset Status Printed"
                                    type="object"
                            />
                        </group>
                    </group>
                </field>
                <field name="partner_id" position="after">
                    <field name="real_shipping_id"/>
                </field>
                <field name="product_uom_qty" position="attributes">
                    <attribute name="attrs">{'readonly': [('parent.picking_type_code', '=', 'incoming')]}</attribute>
                </field>
                <field name="date_done" position="after">
                    <field name="arrival_time"/>
                </field>
                <field name="origin" position="after">
                    <field name="purchase_id"/>
                    <field name="sale_order"/>
                    <field name="invoice_status"/>
                    <field name="date_doc_kirim" attrs="{'readonly':[('invoice_status', '=', 'invoiced')]}"/>
                    <field name="summary_qty_operation"/>
                    <field name="count_line_operation"/>
                    <field name="account_id"
                           attrs="{
                           'readonly': [['state', 'in', ['done', 'cancel']]],
                           'invisible': [['is_internal_use', '=', False]],
                           'required': [['is_internal_use', '=', True]]
                           }"
                    />
                </field>
                <field name="group_id" position="before">
                    <field name="date_reserved"/>
                    <field name="status_printed"/>
                    <field name="printed_sj"/>
                    <field name="date_printed_sj"/>
                    <field name="printed_sj_retur"/>
                    <field name="date_printed_sj_retur"/>
                    <field name="date_printed_list"/>
                    <field name="is_internal_use"
                           string="Internal Use"
                           type="object"
                           attrs="{'readonly': True}"
                           force_save="1"
                    />
                    <field name="approval_status"/>
                    <field name="approval_receipt_status"/>
                    <field name="approval_return_status"/>
                </field>
                <field name="product_id" position="before">
                    <field name="line_no" attrs="{'readonly': 1}" optional="hide"/>
                </field>
                <field name="product_uom" position="after">
                    <field name="sale_id" attrs="{'readonly': 1}" optional="hide"/>
                    <field name="print_barcode" optional="hide"/>
                    <field name="qr_code_variant" widget="image" optional="hide"/>
                </field>
                <page name="note" position="after">
                    <page string="E-Faktur" name="efaktur" attrs="{'invisible': [['is_internal_use', '=', False]]}">
                        <group>
                            <group>
                                <field name="efaktur_id" domain="[('is_used','=',False)]"/>
                                <field name="is_efaktur_exported"/>
                                <field name="date_efaktur_exported"/>
                            </group>
                        </group>
                    </page>
                    <page string="Delivery" name="delivery_order">
                        <group>
                            <group>
                                <field name="notee"/>
                                <field name="note_logistic"/>
                                <field name="responsible" />
                                <field name="carrier_id"/>
                                <field name="picking_code" attrs="{'invisible': [['picking_code', '=', False]]}"/>
                                <field name="picking_code" string="Picking code (akan digenerate ketika sudah di-validate)" attrs="{'invisible': [['picking_code', '!=', False]]}"/>
                                <field name="driver_departure_date" attrs="{'readonly':[('invoice_status', '=', 'invoiced')]}"/>
                                <field name="driver_arrival_date"/>
                                <field name="delivery_tracking_no"/>
                                <field name="driver_id"/>
                                <field name='sj_return_date'/>
                                <field name="sj_documentation" widget="image" />
                                <field name="paket_documentation" widget="image" />
                            </group>
                            <group attrs="{'invisible': [('carrier_id', '!=', 151)]}">
                                <field name="envio_id" invisible="1"/>
                                <field name="envio_code"/>
                                <field name="envio_ref_code"/>
                                <field name="envio_eta_at"/>
                                <field name="envio_ata_at"/>
                                <field name="envio_etd_at" invisible="1"/>
                                <field name="envio_atd_at" invisible="1"/>
                                <field name="envio_received_by"/>
                                <field name="envio_status"/>
                                <field name="envio_cod_value" invisible="1"/>
                                <field name="envio_cod_status" invisible="1"/>
                                <field name="envio_latest_message"/>
                                <field name="envio_latest_recorded_at"/>
                                <field name="envio_latest_latitude" invisible="1"/>
                                <field name="envio_latest_longitude" invisible="1"/>
                                <field name="tracking_by" invisible="1"/>
                            </group>
                            <group attrs="{'invisible': [('carrier_id', '!=', 9)]}">
                                <field name="lalamove_data" invisible="1"/>
                                <field name="lalamove_order_id"/>
                                <field name="lalamove_address"/>
                                <field name="lalamove_name"/>
                                <field name="lalamove_phone"/>
                                <field name="lalamove_status"/>
                                <field name="lalamove_delivered_at"/>
                                <field name="lalamove_image_url" invisible="1"/>
                                <field name="lalamove_image_html"/>
                            </group>
                        </group>
                    </page>
                    <!-- <page string="Check Product" name="check_product">
                        <field name="check_product_lines"/>
                    </page> -->
                </page>
                
            </field>
        </record>

        <!-- <record id="check_product_tree" model="ir.ui.view">
            <field name="name">check.product.tree</field>
            <field name="model">check.product</field>
            <field name="arch" type="xml">
                <tree editable="bottom" decoration-warning="status == 'Pending'" decoration-success="status == 'Done'">
                    <field name="product_id"/>
                    <field name="quantity"/>
                    <field name="status"/>
                </tree>
            </field>
        </record> -->

        <record id="view_stock_move_line_detailed_operation_tree_inherit" model="ir.ui.view">
            <field name="name">stock.move.line.operations.tree.inherit</field>
            <field name="model">stock.move.line</field>
            <field name="inherit_id" ref="stock.view_stock_move_line_detailed_operation_tree"/>
            <field name="arch" type="xml">
                <tree editable="bottom" decoration-muted="(state == 'done' and is_locked == True)" decoration-danger="qty_done&gt;product_uom_qty and state!='done' and parent.picking_type_code != 'incoming'" decoration-success="qty_done==product_uom_qty and state!='done' and not result_package_id">
                    <field name="note" placeholder="Add a note here"/>
                </tree>
            </field>
        </record>
        

        <record id="view_picking_internal_search_inherit" model="ir.ui.view">
            <field name="name">stock.picking.internal.search.inherit</field>
            <field name="model">stock.picking</field>
            <field name="inherit_id" ref="stock.view_picking_internal_search"/>
            <field name="arch" type="xml">
                <field name="product_id" position="after">
                    <field name="purchase_representative_id"/>
                </field>
            </field>
        </record>          
    </data>
</odoo>