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
|
|
|
|
2010-05-12 14:05:51 +00:00
|
|
|
<record id="view_repair_order_tree" model="ir.ui.view">
|
2008-11-28 14:44:41 +00:00
|
|
|
<field name="name">mrp.repair.tree</field>
|
|
|
|
<field name="model">mrp.repair</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="arch" type="xml">
|
2010-09-14 12:45:06 +00:00
|
|
|
<tree string="Repairs order" colors="gray:state in ('done','cancel');black:state not in ('done','cancel');blue:state=='draft'">
|
|
|
|
<field name="name" select="1" />
|
2010-05-12 14:05:51 +00:00
|
|
|
<field name="product_id" select="1" />
|
2010-09-14 12:45:06 +00:00
|
|
|
<field name="move_id"/>
|
2010-05-12 14:05:51 +00:00
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="address_id"/>
|
|
|
|
<field name="location_id"/>
|
|
|
|
<field name="location_dest_id"/>
|
|
|
|
<field name="guarantee_limit"/>
|
|
|
|
<field name="state"/>
|
2008-11-28 14:44:41 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2010-05-12 14:05:51 +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)"/>
|
|
|
|
<field name="deliver_bool"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="prodlot_id" on_change="onchange_lot_id(prodlot_id,product_id)"/>
|
|
|
|
<field name="move_id" on_change="onchange_move_id(product_id, move_id)"/>
|
|
|
|
<field name="repaired"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="partner_id" on_change="onchange_partner_id(partner_id,address_id)"/>
|
|
|
|
<field name="address_id" attrs="{'readonly':[('deliver_bool','=', False)]}"/>
|
|
|
|
<field name="invoiced"/>
|
|
|
|
</group>
|
|
|
|
<notebook colspan="4">
|
|
|
|
<page string="Operations">
|
|
|
|
<field name="guarantee_limit" />
|
|
|
|
<newline/>
|
|
|
|
<field colspan="4" mode="tree,form" name="operations" nolabel="1" widget="one2many_list">
|
|
|
|
<form string="Operations">
|
|
|
|
<notebook>
|
|
|
|
<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"/>
|
|
|
|
<field name="product_uom_qty" string="Qty" />
|
|
|
|
<field name="product_uom" string="UoM"/>
|
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="price_subtotal"/>
|
|
|
|
<field name="location_id"/>
|
|
|
|
<field name="location_dest_id"/>
|
|
|
|
<newline/>
|
|
|
|
<field name="type" on_change="onchange_operation_type(type,parent.guarantee_limit)"/>
|
|
|
|
<group colspan="2">
|
|
|
|
<field name="to_invoice"/>
|
|
|
|
<field name="invoiced"/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/>
|
|
|
|
<separator colspan="4" string="States"/>
|
|
|
|
<field name="state"/>
|
|
|
|
</page>
|
|
|
|
<page string="History" groups="base.group_extended">
|
|
|
|
<field colspan="4" name="move_id" />
|
|
|
|
<field colspan="4" name="invoice_line_id"/>
|
|
|
|
</page>
|
|
|
|
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
<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'/>
|
|
|
|
<field name="location_id"/>
|
|
|
|
<field name="location_dest_id"/>
|
|
|
|
<field name="product_uom_qty" string="Qty"/>
|
|
|
|
<field name="product_uom" string="UoM"/>
|
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="tax_id"/>
|
|
|
|
<field name="to_invoice"/>
|
|
|
|
<field name="price_subtotal"/>
|
|
|
|
</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"/>
|
2010-09-14 12:45:06 +00:00
|
|
|
<button name="button_dummy" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific"/>
|
2010-05-12 14:05:51 +00:00
|
|
|
</group>
|
2010-09-14 12:45:06 +00:00
|
|
|
<separator string="" colspan="4"/>
|
2010-05-12 14:05:51 +00:00
|
|
|
<group col="13" colspan="4">
|
|
|
|
<field name="state"/>
|
2010-09-14 13:43:22 +00:00
|
|
|
<button name="repair_confirm" states="draft" string="Co_nfirm Repair" icon="terp-camera_test"/>
|
|
|
|
<button name="repair_ready" states="confirmed" string="Start _Repair" icon="terp-gtk-jump-to-ltr"/>
|
|
|
|
<button name="action_repair_start" states="ready" string="Start _Repair" icon="terp-gtk-jump-to-ltr"/>
|
|
|
|
<button name="action_repair_end" states="under_repair" string="_End Repair" icon="terp-dialog-close"/>
|
|
|
|
<button name="invoice_recreate" states="invoice_except" string="_Recreate Invoice" icon="terp-dolar"/>
|
|
|
|
<button name="invoice_corrected" states="invoice_except" string="_Invoice Corrected" icon="terp-emblem-important"/>
|
|
|
|
<button name="action_invoice_create" states="2binvoiced" string="Make _Invoice" icon="terp-dolar"/>
|
|
|
|
<button name="%(action_cancel_repair)d" states="invoice_except" string="_Cancel Repair" type="action" icon="gtk-stop"/>
|
|
|
|
<button name="action_cancel_draft" states="cancel" string="Set to _Draft" type="object" icon="gtk-convert"/>
|
|
|
|
<button name="cancel" states="draft" string="_Cancel Repair" icon="gtk-stop"/>
|
|
|
|
<button name="%(action_cancel_repair)d" states="confirmed,2binvoiced,ready,under_repair" string="_Cancel Repair" type="action" icon="gtk-stop"/>
|
2010-05-12 14:05:51 +00:00
|
|
|
</group>
|
|
|
|
</page>
|
|
|
|
<page string="Invoicing">
|
|
|
|
<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"/> -->
|
|
|
|
<field colspan="4" mode="tree,form" name="fees_lines" nolabel="1" widget="one2many_list">
|
|
|
|
<form string="Fees">
|
|
|
|
<notebook>
|
|
|
|
<page string="Fees Line">
|
|
|
|
<field name='name'/>
|
|
|
|
<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"/>
|
|
|
|
<field name="product_uom_qty" string="Qty"/>
|
|
|
|
<field name="product_uom" string="UoM" />
|
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="price_subtotal"/>
|
|
|
|
<newline/>
|
|
|
|
<group colspan="2">
|
|
|
|
<field name="to_invoice"/>
|
|
|
|
<field name="invoiced"/>
|
|
|
|
</group>
|
|
|
|
<newline/>
|
|
|
|
<field colspan="4" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','<>','purchase')]"/>
|
|
|
|
</page>
|
|
|
|
<page string="History" groups="base.group_extended">
|
|
|
|
<field colspan="4" name="invoice_line_id" />
|
|
|
|
</page>
|
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
<tree string="Fees" editable="bottom">
|
|
|
|
<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)"/>
|
|
|
|
<field name='name'/>
|
|
|
|
<field name="product_uom_qty" string="Qty"/>
|
|
|
|
<field name="product_uom" string="UoM"/>
|
|
|
|
<field name="price_unit"/>
|
|
|
|
<field name="to_invoice"/>
|
|
|
|
<field name="price_subtotal"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
|
|
<page string="Extra Info" groups="base.group_extended">
|
|
|
|
<field name="invoice_id"/>
|
|
|
|
<field name="picking_id"/>
|
|
|
|
<field name="location_id"/>
|
|
|
|
<field name="location_dest_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}"/>
|
|
|
|
</page>
|
2010-09-14 12:45:06 +00:00
|
|
|
<page string="Notes">
|
|
|
|
<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>
|
2010-05-12 14:05:51 +00:00
|
|
|
</notebook>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<record id="view_repair_order_form_filter" model="ir.ui.view">
|
|
|
|
<field name="name">mrp.repair.select</field>
|
|
|
|
<field name="model">mrp.repair</field>
|
|
|
|
<field name="type">search</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<search string="Search Reair Orders">
|
|
|
|
<group col='4' colspan='4'>
|
2010-07-01 13:40:10 +00:00
|
|
|
<filter icon="terp-document-new" string="Quotations" domain="[('state','=','draft')]"/>
|
2010-08-05 11:00:04 +00:00
|
|
|
<filter icon="terp-check" string="Confirmed" domain="[('state','=','confirmed')]" name="current" />
|
2010-07-01 13:40:10 +00:00
|
|
|
<filter icon="terp-emblem-important" string="Ready To Repair" domain="[('state','=','ready')]"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter icon="terp-dolar" string="invoiced" domain="[('state','=','2binvoiced')]"/>
|
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<field name="name"/>
|
|
|
|
<field name="product_id"/>
|
|
|
|
<field name="partner_id"/>
|
|
|
|
<field name="state" />
|
2010-05-12 14:05:51 +00:00
|
|
|
</group>
|
|
|
|
<newline/>
|
2010-09-15 10:34:44 +00:00
|
|
|
<group expand="0" string="Group By" colspan="10" col="8" groups="base.group_extended">
|
|
|
|
<filter string="Partner" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
|
|
|
|
<separator orientation="vertical"/>
|
2010-06-01 05:30:23 +00:00
|
|
|
<filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
|
|
|
|
<filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
|
2010-07-01 13:40:10 +00:00
|
|
|
<separator orientation="vertical"/>
|
|
|
|
<filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'guarantee_limit'}"/>
|
2010-05-12 14:05:51 +00:00
|
|
|
</group>
|
|
|
|
</search>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2010-07-01 13:40:10 +00:00
|
|
|
|
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>
|
2010-05-12 14:05:51 +00:00
|
|
|
<field name="search_view_id" ref="view_repair_order_form_filter"/>
|
2010-07-01 13:40:10 +00:00
|
|
|
</record>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2010-08-06 07:14:22 +00:00
|
|
|
<menuitem action="action_repair_order_tree" id="menu_repair_order" parent="mrp.menu_mrp_manufacturing" groups="mrp.group_mrp_user" name="Repair Orders" sequence="50"/>
|
2009-01-21 13:53:03 +00:00
|
|
|
|
2008-11-28 14:44:41 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|