[IMP] Add lot on mrp_repair operations
bzr revid: jco@openerp.com-20140122153519-zs2062b653l16qb5
This commit is contained in:
parent
a173b17ce3
commit
2213f6f102
|
@ -471,6 +471,7 @@ class mrp_repair(osv.osv):
|
|||
move_id = move_obj.create(cr, uid, {
|
||||
'name': move.name,
|
||||
'product_id': move.product_id.id,
|
||||
'restrict_lot_id': move.lot_id.id,
|
||||
'product_uom_qty': move.product_uom_qty,
|
||||
'product_uom': move.product_uom.id,
|
||||
'partner_id': repair.address_id and repair.address_id.id or False,
|
||||
|
@ -606,6 +607,7 @@ class mrp_repair_line(osv.osv, ProductChangeMixin):
|
|||
'location_id': fields.many2one('stock.location', 'Source Location', required=True, select=True),
|
||||
'location_dest_id': fields.many2one('stock.location', 'Dest. Location', required=True, select=True),
|
||||
'move_id': fields.many2one('stock.move', 'Inventory Move', readonly=True),
|
||||
'lot_id': fields.many2one('stock.production.lot', 'Lot'),
|
||||
'state': fields.selection([
|
||||
('draft','Draft'),
|
||||
('confirmed','Confirmed'),
|
||||
|
|
|
@ -94,6 +94,7 @@
|
|||
<field name="type" on_change="onchange_operation_type(type,parent.guarantee_limit,parent.company_id,context)"/>
|
||||
<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="lot_id" domain="[('product_id', '=', product_id)]" context="{'default_product_id': product_id}" groups="stock.group_tracking_lot"/>
|
||||
<field name="location_id" groups="stock.group_locations"/>
|
||||
<field name="location_dest_id" groups="stock.group_locations"/>
|
||||
<field name="product_uom_qty" string="Quantity"/>
|
||||
|
|
Loading…
Reference in New Issue