When we cancel the repair order then status should be "Cancelled" not "Cancel"
Product to repair field on repair order should not show service products
Move, when create a new move it should take Product to repair by default.

bzr revid: apa@tinyerp.com-20120619113107-z9sipz51tb3kv2kx
This commit is contained in:
Amit Patel (OpenERP) 2012-06-19 17:01:07 +05:30
parent c9c27a2432
commit 4fd82385df
2 changed files with 3 additions and 3 deletions

View File

@ -122,7 +122,7 @@ class mrp_repair(osv.osv):
'prodlot_id': fields.many2one('stock.production.lot', 'Lot Number', select=True, domain="[('product_id','=',product_id)]"),
'state': fields.selection([
('draft','Quotation'),
('cancel','Cancel'),
('cancel','Cancelled'),
('confirmed','Confirmed'),
('under_repair','Under Repair'),
('ready','Ready to Repair'),

View File

@ -45,7 +45,7 @@
<sheet string="Repairs order">
<label for="product_id" class="oe_form_readonly_hidden"/>
<h1>
<field name="product_id" on_change="onchange_product_id(product_id)"/>
<field name="product_id" on_change="onchange_product_id(product_id)" domain="[('type','!=','service')]"/>
</h1>
<label for="name" class="oe_form_readonly_hidden"/>
<h2>
@ -56,7 +56,7 @@
<field name="partner_id" on_change="onchange_partner_id(partner_id,address_id)"/>
<field name="address_id" attrs="{'readonly':[('deliver_bool','=', False)]}"/>
<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="move_id" on_change="onchange_move_id(product_id, move_id)" context="{'default_product_id':product_id}"/>
</group>
<group>
<field name="deliver_bool"/>