From ff6e8555a7a97f28f7754d7a1eb2bf60e76064df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 21 Apr 2016 17:23:46 +0200 Subject: [PATCH] Allow view location as provisioning issue5496 review24171002 --- location.py | 2 +- order_point.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'),