1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="view_repair_order_form" model="ir.ui.view">
6 <field name="name">mrp.repair.form</field>
7 <field name="model">mrp.repair</field>
8 <field name="type">form</field>
9 <field name="arch" type="xml">
10 <form string="Repairs order">
11 <group col="4" colspan="4">
14 <field name="product_id" select="1" on_change="onchange_product_id(product_id, move_id)"/>
15 <field name="prodlot_id" select="2" on_change="onchange_lot_id(prodlot_id)"/>
16 <field name="partner_id" select="2" on_change="onchange_partner_id(partner_id)" />
17 <field name="address_id"/>
19 <notebook colspan="4">
20 <page string="Products">
21 <field name="location_id"/>
22 <field name="move_id" on_change="onchange_product_id(product_id, move_id)"/>
23 <field name="location_dest_id"/>
24 <field name="guarantee_limit" />
26 <separator colspan="4" string="Operations"/>
27 <field colspan="4" mode="tree,form" name="operations" nolabel="1" widget="one2many_list">
28 <form string="Operations">
29 <field name="type" on_change="onchange_operation_type(type)"/>
30 <field name="invoice"/>
31 <field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id)"/>
32 <field name="product_uom_qty" string="Qty"/>
33 <field name="product_uom" string="UoM"/>
34 <field name="price_unit"/>
35 <field name="discount"/>
36 <field name="price_subtotal"/>
38 <field name="location_id"/>
39 <field name="location_dest_id"/>
43 <tree string="Operations lines"> <!-- editable="bottom"> -->
44 <field name="type" on_change="onchange_operation_type(type)"/>
45 <field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id)"/>
46 <field name="product_uom_qty" string="Qty"/>
47 <field name="product_uom" string="UoM"/>
48 <field name="discount"/>
49 <field name="price_unit"/>
50 <field name="price_net"/>
51 <field name="price_subtotal"/>
52 <field name="invoice"/>
56 <group col="13" colspan="4">
57 <field name="state" select="2"/>
59 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
60 <button name="action_cancel" states="manual,progress" string="Cancel Order" type="object"/>
61 <button name="cancel" states="draft" string="Cancel Order"/>
62 <button name="invoice_cancel" states="invoice_except" string="Cancel Order"/>
65 <button name="repair_confirm" states="draft" string="Confirm Repair"/>
66 <button name="invoice_recreate" states="invoice_except" string="Recreate Invoice"/>
67 <button name="invoice_corrected" states="invoice_except" string="Invoice Corrected"/>
68 <button name="ship_recreate" states="shipping_except" string="Recreate Procurement"/>
69 <button name="ship_corrected" states="shipping_except" string="Procurement Corrected"/>
70 <button name="make_invoice" states="2binvoiced" string="Make Invoice"/>
71 <button name="ship_cancel" states="shipping_except" string="Cancel Order"/>
72 <button name="repair_done" states="confirmed" string="Repair Done"/>
74 <button name="%(action_cancel_repair)d" states="draft,confirmed,2binvoiced" string="Cancel Repair" type="action"/>
75 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
78 <page string="Invoicing">
79 <field name="pricelist_id" context="product_id=product_id"/>
80 <field name="partner_invoice_id"/>
81 <field name="invoice_method"/>
82 <field name="invoice_id"/>
83 <separator colspan="4" string="Fees"/>
84 <field colspan="4" mode="tree,form" name="fees_lines" nolabel="1" widget="one2many_list">
85 <form string="Fees Line">
86 <field name="product_id" on_change="product_id_change(product_id,product_uom)" />
87 <field name="product_uom_qty" string="Qty"/>
88 <field name="product_uom" string="UoM" /> <!--on_change="product_id_change(product_id,product_uom)" /> -->
89 <field name="price_unit"/>
91 <tree string="Fees lines"> <!-- editable="bottom"> -->
92 <field name="product_id"/>
93 <field name="product_uom_qty" string="Qty"/>
94 <field name="product_uom" string="UoM"/>
95 <field name="price_unit"/>
99 <page string="Quality">
100 <separator colspan="4" string="Internal Notes"/>
101 <field colspan="4" name="internal_notes" nolabel="1"/>
102 <separator colspan="4" string="Quotation Notes"/>
103 <field colspan="4" name="quotation_notes" nolabel="1"/>
110 <record id="view_repair_order_tree" model="ir.ui.view">
111 <field name="name">mrp.repair.tree</field>
112 <field name="model">mrp.repair</field>
113 <field name="type">tree</field>
114 <field name="arch" type="xml">
115 <tree string="Repairs order">
116 <field name="product_id" select="1" />
117 <field name="prodlot_id" select="2"/>
118 <field name="partner_id" select="2"/>
119 <field name="address_id"/>
120 <field name="location_id"/>
121 <field name="move_id"/>
122 <field name="location_dest_id"/>
123 <field name="guarantee_limit"/>
128 <record id="action_repair_order_form" model="ir.actions.act_window">
129 <field name="name">New Repair</field>
130 <field name="type">ir.actions.act_window</field>
131 <field name="res_model">mrp.repair</field>
132 <field name="view_type">form</field>
133 <field name="view_mode">form,tree</field>
136 <record id="action_repair_order_tree" model="ir.actions.act_window">
137 <field name="name">Repair Orders</field>
138 <field name="type">ir.actions.act_window</field>
139 <field name="res_model">mrp.repair</field>
140 <field name="view_type">form</field>
141 <field name="view_mode">tree,form</field>
144 <record id="action_repair_quotation_tree" model="ir.actions.act_window">
145 <field name="name">Repairs in quotation</field>
146 <field name="type">ir.actions.act_window</field>
147 <field name="res_model">mrp.repair</field>
148 <field name="view_type">form</field>
149 <field name="view_mode">tree,form</field>
150 <field name="domain">[('state','=','draft')]</field>
153 <record id="action_repair_progress_tree" model="ir.actions.act_window">
154 <field name="name">Repairs in progress</field>
155 <field name="type">ir.actions.act_window</field>
156 <field name="res_model">mrp.repair</field>
157 <field name="view_type">form</field>
158 <field name="view_mode">tree,form</field>
159 <field name="domain">[('state','=','confirmed')]</field>
162 <record id="action_repair_2binvoiced_tree" model="ir.actions.act_window">
163 <field name="name">Repairs to be invoiced</field>
164 <field name="type">ir.actions.act_window</field>
165 <field name="res_model">mrp.repair</field>
166 <field name="view_type">form</field>
167 <field name="view_mode">tree,form</field>
168 <field name="domain">[('state','=','2binvoiced')]</field>
171 <menuitem action="action_repair_order_tree" id="menu_repair_order" parent="mrp.menu_mrp_root" name="Repairs"/>
173 <menuitem action="action_repair_quotation_tree" id="menu_repair_quotation" parent="menu_repair_order"/>
175 <menuitem action="action_repair_progress_tree" id="menu_repair_progress" parent="menu_repair_order"/>
177 <menuitem action="action_repair_2binvoiced_tree" id="menu_repair_2binvoiced" parent="menu_repair_order"/>
179 <menuitem action="action_repair_order_form" id="menu_repair_form" parent="menu_repair_order" sequence = "50"/>