[IMP] stock_picking_out replace with stock_picking and set required field false
bzr revid: rma@tinyerp.com-20130807103629-h6rc3mxmupyb0945
This commit is contained in:
parent
30d1dfc56a
commit
b5d729d874
|
@ -518,7 +518,7 @@ class mrp_repair(osv.osv):
|
|||
})
|
||||
repair_line_obj.write(cr, uid, [move.id], {'move_id': move_id, 'state': 'done'}, context=context)
|
||||
if repair.deliver_bool:
|
||||
pick_name = seq_obj.get(cr, uid, 'stock.picking.out')
|
||||
pick_name = seq_obj.get(cr, uid, 'stock.picking')
|
||||
picking = pick_obj.create(cr, uid, {
|
||||
'name': pick_name,
|
||||
'origin': repair.name,
|
||||
|
@ -527,7 +527,7 @@ class mrp_repair(osv.osv):
|
|||
'partner_id': repair.address_id and repair.address_id.id or False,
|
||||
'note': repair.internal_notes,
|
||||
'invoice_state': 'none',
|
||||
'type': 'out',
|
||||
'picking_type_id': self.pool.get('ir.model.data').get_object(cr, uid, 'stock', 'picking_type_out', context=context).id
|
||||
})
|
||||
move_id = move_obj.create(cr, uid, {
|
||||
'name': repair.name,
|
||||
|
|
|
@ -50,7 +50,7 @@ class stock_picking(osv.osv):
|
|||
("invoiced", "Invoiced"),
|
||||
("2binvoiced", "To Be Invoiced"),
|
||||
("none", "Not Applicable")
|
||||
], string="Invoice Control", required=True,
|
||||
], string="Invoice Control", required=False,
|
||||
store={
|
||||
'procurement.order': (__get_picking_procurement, ['invoice_state'], 10),
|
||||
'stock.picking': (lambda self, cr, uid, ids, c={}: ids, ['state'], 10)
|
||||
|
|
Loading…
Reference in New Issue