re-allow internal shipment from/to lost and found locations
review2181002 issue3544
This commit is contained in:
1 parent
5046abe5fe
commit
debfe38735
1 file changed
+2
-2
+2
-2
@@ -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={
|
||||
|
||||
Reference in new issue
Block a user