diff --git a/location.py b/location.py index b5a3830c02..2fd4da60aa 100644 --- a/location.py +++ b/location.py @@ -19,7 +19,7 @@ class Location: 'readonly': ~Eval('active'), }, domain=[ - ('type', '=', 'storage'), + ('type', 'in', ['storage', 'view']), ], depends=['type', 'active'], help='Leave empty for no default provisioning') diff --git a/order_point.py b/order_point.py index cfea0eba5b..9d8a16b2d0 100644 --- a/order_point.py +++ b/order_point.py @@ -45,7 +45,7 @@ class OrderPoint(ModelSQL, ModelView): 'get_location', searcher='search_location') provisioning_location = fields.Many2One( 'stock.location', 'Provisioning Location', - domain=[('type', '=', 'storage')], + domain=[('type', 'in', ['storage', 'view'])], states={ 'invisible': Not(Equal(Eval('type'), 'internal')), 'required': Equal(Eval('type'), 'internal'),