2008-11-28 14:44:41 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<record id="view_repair_order_form" model="ir.ui.view">
|
|
|
|
<field name="name">mrp.repair.form</field>
|
|
|
|
<field name="model">mrp.repair</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<form string="Repairs order">
|
|
|
|
<group col="6" colspan="4">
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="product_id" select="1" on_change="onchange_product_id(product_id)"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<field name="deliver_bool"/>
|
|
|
|
<newline/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="prodlot_id" select="2" on_change="onchange_lot_id(prodlot_id,product_id)"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<field name="move_id" on_change="onchange_move_id(product_id, move_id)"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="repaired"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<newline/>
|
2008-12-03 15:06:41 +00:00
|
|
|
<field name="partner_id" select="2" on_change="onchange_partner_id(partner_id,address_id)"/>
|
2008-12-04 13:09:01 +00:00
|
|
|
<field name="address_id" attrs="{'readonly':[('deliver_bool','=', False)]}"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="invoiced"/>
|
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
2008-12-04 11:35:13 +00:00
|
|
|
<page string="Operations">
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="guarantee_limit" />
|
|
|
|
<newline/>
|
|
|
|
<field colspan="4" mode="tree,form" name="operations" nolabel="1" widget="one2many_list">
|
2009-01-21 13:53:03 +00:00
|
|
|
<form string="Operations">
|
2008-11-28 14:44:41 +00:00
|
|
|
<notebook>
|
2009-01-21 13:53:03 +00:00
|
|
|
<page string="Repair Line">
|
|
|
|
<field name="name" colspan="4"/>
|
|
|
|
<field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id)" colspan="4"/>
|
2008-12-04 15:06:28 +00:00
|
|
|
<field name="product_uom_qty" string="Qty" />
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="product_uom" string="UoM"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="price_subtotal"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="location_id"/>
|
|
|
|
<field name="location_dest_id"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="type" on_change="onchange_operation_type(type,parent.guarantee_limit)"/>
|
2008-12-03 15:06:41 +00:00
|
|
|
<group colspan="2">
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="to_invoice"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
<field name="invoiced"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
2009-01-22 23:15:05 +00:00
|
|
|
<field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<separator colspan="4" string="States"/>
|
|
|
|
<field name="state"/>
|
|
|
|
</page>
|
|
|
|
<page string="History" groups="base.group_extended">
|
2008-12-03 15:06:41 +00:00
|
|
|
<field colspan="4" name="move_id" />
|
|
|
|
<field colspan="4" name="invoice_line_id"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
</page>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
</notebook>
|
|
|
|
</form>
|
2008-12-03 11:29:25 +00:00
|
|
|
<tree string="Operations" editable="bottom">
|
|
|
|
<field name="type" on_change="onchange_operation_type(type,parent.guarantee_limit)"/>
|
|
|
|
<field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id)"/>
|
|
|
|
<field name='name'/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="location_id"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<field name="location_dest_id"/>
|
2008-12-04 15:06:28 +00:00
|
|
|
<field name="product_uom_qty" string="Qty"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<field name="product_uom" string="UoM"/>
|
|
|
|
<field name="price_unit"/>
|
2008-12-04 15:06:28 +00:00
|
|
|
<field name="tax_id"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="to_invoice"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<field name="price_subtotal"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
<newline/>
|
|
|
|
<group col="7" colspan="4">
|
|
|
|
<field name="amount_untaxed" sum="Untaxed amount"/>
|
|
|
|
<field name="amount_tax"/>
|
|
|
|
<field name="amount_total" sum="Total amount"/>
|
|
|
|
<button name="button_dummy" states="draft" string="Compute" type="object"/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
2008-12-03 15:06:41 +00:00
|
|
|
<group col="13" colspan="4">
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="state" select="2"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<button name="repair_confirm" states="draft" string="Confirm Repair"/>
|
|
|
|
<button name="repair_ready" states="confirmed" string="Start Repair"/>
|
|
|
|
<button name="action_repair_start" states="ready" string="Start Repair"/>
|
|
|
|
<button name="action_repair_end" states="under_repair" string="End Repair"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<button name="invoice_recreate" states="invoice_except" string="Recreate Invoice"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<button name="invoice_corrected" states="invoice_except" string="Invoice Corrected"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<button name="action_invoice_create" states="2binvoiced" string="Make Invoice"/>
|
|
|
|
<button name="%(action_cancel_repair)d" states="invoice_except" string="Cancel Repair" type="action"/>
|
|
|
|
<button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
<button name="cancel" states="draft" string="Cancel Repair"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<button name="%(action_cancel_repair)d" states="confirmed,2binvoiced,ready,under_repair" string="Cancel Repair" type="action"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
<page string="Invoicing">
|
2008-12-03 15:06:41 +00:00
|
|
|
<field name="invoice_method" colspan="4" />
|
|
|
|
<field name="pricelist_id" context="product_id=product_id" attrs="{'readonly':[('invoice_method','=', 'none')]}"/>
|
|
|
|
<field name="partner_invoice_id" attrs="{'readonly':[('invoice_method','=', 'none')]}"/>
|
|
|
|
<!--<field name="invoice_id"/>-->
|
2008-11-28 14:44:41 +00:00
|
|
|
<field colspan="4" mode="tree,form" name="fees_lines" nolabel="1" widget="one2many_list">
|
2008-12-03 11:29:25 +00:00
|
|
|
<form string="Fees">
|
2008-11-28 14:44:41 +00:00
|
|
|
<notebook>
|
2009-01-21 13:53:03 +00:00
|
|
|
<page string="Fees Line">
|
|
|
|
<field name='name'/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id,parent.guarantee_limit)" colspan="4"/>
|
2008-12-04 15:06:28 +00:00
|
|
|
<field name="product_uom_qty" string="Qty"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
<field name="product_uom" string="UoM" />
|
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="price_subtotal"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<newline/>
|
2009-01-21 13:53:03 +00:00
|
|
|
<group colspan="2">
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="to_invoice"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
<field name="invoiced"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
2009-01-22 23:15:05 +00:00
|
|
|
<field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','>>','purchase')]"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
</page>
|
2009-01-21 13:53:03 +00:00
|
|
|
<page string="History" groups="base.group_extended">
|
|
|
|
<field colspan="4" name="invoice_line_id" />
|
|
|
|
</page>
|
|
|
|
</notebook>
|
2008-11-28 14:44:41 +00:00
|
|
|
</form>
|
2008-12-03 11:29:25 +00:00
|
|
|
<tree string="Fees" editable="bottom">
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="product_id" on_change="product_id_change(parent.pricelist_id,product_id,product_uom,product_uom_qty, parent.partner_id,parent.guarantee_limit)"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<field name='name'/>
|
2008-12-04 15:06:28 +00:00
|
|
|
<field name="product_uom_qty" string="Qty"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="product_uom" string="UoM"/>
|
2008-12-03 11:29:25 +00:00
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="to_invoice"/>
|
|
|
|
<field name="price_subtotal"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
</tree>
|
2008-12-03 11:29:25 +00:00
|
|
|
</field>
|
2008-11-28 14:44:41 +00:00
|
|
|
</page>
|
|
|
|
<page string="Quality">
|
|
|
|
<separator colspan="4" string="Internal Notes"/>
|
|
|
|
<field colspan="4" name="internal_notes" nolabel="1"/>
|
|
|
|
<separator colspan="4" string="Quotation Notes"/>
|
|
|
|
<field colspan="4" name="quotation_notes" nolabel="1"/>
|
|
|
|
</page>
|
2009-01-21 13:53:03 +00:00
|
|
|
<page string="Extra Info" groups="base.group_extended">
|
2008-12-03 15:06:41 +00:00
|
|
|
<field name="invoice_id"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="picking_id"/>
|
2008-12-03 15:06:41 +00:00
|
|
|
<field name="location_id"/>
|
|
|
|
<field name="location_dest_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<record id="view_repair_order_tree" model="ir.ui.view">
|
|
|
|
<field name="name">mrp.repair.tree</field>
|
|
|
|
<field name="model">mrp.repair</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<tree string="Repairs order">
|
|
|
|
<field name="name" select="1" />
|
|
|
|
<field name="product_id" select="1" />
|
|
|
|
<field name="prodlot_id" select="2"/>
|
|
|
|
<field name="partner_id" select="2"/>
|
|
|
|
<field name="address_id"/>
|
|
|
|
<field name="location_id"/>
|
|
|
|
<field name="state" select="2"/>
|
|
|
|
<field name="move_id"/>
|
|
|
|
<field name="location_dest_id"/>
|
|
|
|
<field name="guarantee_limit"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<record id="action_repair_order_form" model="ir.actions.act_window">
|
|
|
|
<field name="name">New Repair</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">mrp.repair</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form,tree</field>
|
|
|
|
</record>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<record id="action_repair_order_tree" model="ir.actions.act_window">
|
|
|
|
<field name="name">Repair Orders</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">mrp.repair</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
</record>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<record id="action_repair_quotation_tree" model="ir.actions.act_window">
|
|
|
|
<field name="name">Repairs in quotation</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">mrp.repair</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="domain">[('state','=','draft')]</field>
|
|
|
|
</record>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<record id="action_repair_progress_tree" model="ir.actions.act_window">
|
|
|
|
<field name="name">Repairs in progress</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">mrp.repair</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
2008-12-08 17:08:40 +00:00
|
|
|
<field name="domain">[('state','=','under_repair')]</field>
|
2008-11-28 14:44:41 +00:00
|
|
|
</record>
|
2008-12-08 17:08:40 +00:00
|
|
|
|
|
|
|
<record id="action_repair_ready_tree" model="ir.actions.act_window">
|
|
|
|
<field name="name">Repairs Ready to Start</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">mrp.repair</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="domain">[('state','!=','draft'),('state','!=','under_repair'),('state','!=','2binvoiced'),('state','!=','invoice_except'),('state','!=','done'),('state','!=','cancel'),]</field>
|
|
|
|
</record>
|
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<record id="action_repair_2binvoiced_tree" model="ir.actions.act_window">
|
|
|
|
<field name="name">Repairs to be invoiced</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">mrp.repair</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">tree,form</field>
|
|
|
|
<field name="domain">[('state','=','2binvoiced')]</field>
|
|
|
|
</record>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<menuitem action="action_repair_order_tree" id="menu_repair_order" parent="mrp.menu_mrp_root" name="Repairs"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<menuitem action="action_repair_quotation_tree" id="menu_repair_quotation" parent="menu_repair_order"/>
|
2008-12-08 17:08:40 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<menuitem action="action_repair_progress_tree" id="menu_repair_progress" parent="menu_repair_order"/>
|
2008-12-08 17:08:40 +00:00
|
|
|
|
|
|
|
<menuitem action="action_repair_ready_tree" id="menu_repair_ready" parent="menu_repair_order"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<menuitem action="action_repair_2binvoiced_tree" id="menu_repair_2binvoiced" parent="menu_repair_order"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
<menuitem action="action_repair_order_form" id="menu_repair_form" parent="menu_repair_order" sequence = "50"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|