[IMP]:improved mrp repair view as new style

bzr revid: apa@tinyerp.com-20120625110243-2fzx2de1brqwqh36
This commit is contained in:
Amit Patel (OpenERP) 2012-06-25 16:32:43 +05:30
parent f116bcc410
commit 46729c6b86
1 changed files with 16 additions and 30 deletions

View File

@ -51,24 +51,21 @@
<h2>
<field name="name"/>
</h2>
<group col="4">
<group>
<group>
<field name="partner_id" on_change="onchange_partner_id(partner_id,address_id)" attrs="{'required':[('invoice_method','!=','none')]}"/>
<field name="address_id" attrs="{'readonly':[('deliver_bool','=', False)]}" groups="sale.group_delivery_invoice_address"/>
<field name="move_id" on_change="onchange_move_id(product_id, move_id)" context="{'default_product_id':product_id}"/>
<field name="location_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}" groups="stock.group_locations"/>
<field name="prodlot_id" on_change="onchange_lot_id(prodlot_id,product_id)" groups="stock.group_production_lot" string="Serial Number"/>
</group>
<group>
<field name="location_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}"/>
<field name="prodlot_id" on_change="onchange_lot_id(prodlot_id,product_id)"/>
<field name="guarantee_limit"/>
<field name="deliver_bool" groups="base.group_no_one"/>
<field name="repaired" groups="base.group_no_one"/>
<field name="invoiced" groups="base.group_no_one"/>
</group>
</group>
<!--<group string="Manage Multiple Locations and Warehouses" col="2">-->
<!-- <field name="location_id" attrs="{'readonly':[('deliver_bool','=', False)], 'required':[('deliver_bool','=', True)]}"/> -->
<!--</group>-->
<notebook>
<page string="Operations">
<group col="4">
@ -83,31 +80,20 @@
<group col="4">
<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)"/>
<field name="product_uom_qty"/>
<label for="product_uom_qty"/>
<div>
<field name="product_uom_qty" class="oe_inline"/>
<field name="product_uom" class="oe_inline" groups="product.group_uom"/>
</div>
<field name="price_unit"/>
<field name="price_subtotal"/>
<field name="type" on_change="onchange_operation_type(type,parent.guarantee_limit,parent.company_id,context)"/>
<field name="to_invoice"/>
<field name="tax_id" widget="many2many_tags" domain="[('parent_id','=',False),('type_tax_use','&lt;&gt;','purchase')]"/>
<field name="invoiced"/>
</group>
<group col="4">
<group string="Manage Serial Numbers">
<field name='prodlot_id'/>
</group>
<group string="Manage Multiple Locations and Warehouses">
<field name="location_id"/>
<field name="location_dest_id"/>
</group>
</group>
<group col="4">
<group string="Manage Multiple Unit of Measure">
<field name="product_uom" string="Unit of Measure"/>
</group>
<group string="State">
<field name="state"/>
</group>
<field name='prodlot_id'/>
<field name="location_id"/>
<field name="location_dest_id"/>
</group>
</page>
<page string="History">
@ -136,7 +122,7 @@
<group class="oe_subtotal_footer">
<field name="amount_untaxed" sum="Untaxed amount"/>
<field name="amount_tax"/>
<field name="amount_total" sum="Total amount"/>
<field name="amount_total" sum="Total amount" class="oe_subtotal_footer_separator"/>
<button name="button_dummy" states="draft" string="Compute" type="object" icon="terp-stock_format-scientific"/>
</group>
<div class="oe_clear"/>
@ -154,16 +140,16 @@
<group col="4">
<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)"/>
<field name="product_uom_qty" string="Quantity"/>
<div>
<field name="product_uom_qty" string="Quantity" class="oe_inline"/>
<field name="product_uom" groups="product.group_uom" class="oe_inline"/>
</div>
<field name="price_unit"/>
<field name="price_subtotal"/>
<field name="to_invoice"/>
<field name="invoiced"/>
<field widget="many2many_tags" name="tax_id" domain="[('parent_id','=',False),('type_tax_use','&lt;&gt;','purchase')]"/>
</group>
<group string="Manage Multiple Unit of Measure" col="2">
<field name="product_uom" string="Unit of Measure"/>
</group>
</page>
<page string="History">
<field name="invoice_line_id" />