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

review2181002
issue3544
(transplanted from f5ce03ef9558960ef68e0592c9235632bb181788)
This commit is contained in:
Sergi Almacellas Abellana committed 2013-12-11 17:36:24 +01:00
1 parent 5d2dfc74af
commit a694a8eb43
1 file changed
+2 -2
+2 -2
View File
@@ -1777,14 +1777,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={