re-allow internal shipment from/to lost and found locations

review2181002
issue3544
This commit is contained in:
Sergi Almacellas Abellana committed 2013-12-11 17:36:24 +01:00
1 parent 5046abe5fe
commit debfe38735
1 file changed
+2 -2
+2 -2
View File
@@ -1753,14 +1753,14 @@ class ShipmentInternal(Workflow, ModelSQL, ModelView):
Bool(Eval('moves'))),
},
domain=[
('type', 'in', ['storage']),
('type', 'in', ['storage', 'lost_found']),
], depends=['state', 'moves'])
to_location = fields.Many2One('stock.location', "To Location",
required=True, states={
'readonly': Or(Not(Equal(Eval('state'), 'draft')),
Bool(Eval('moves'))),
}, domain=[
('type', 'in', ['storage']),
('type', 'in', ['storage', 'lost_found']),
], depends=['state', 'moves'])
moves = fields.One2Many('stock.move', 'shipment', 'Moves',
states={