Allow view location as provisioning
issue5496 review24171002
This commit is contained in:
1 parent
cb13389256
commit
ff6e8555a7
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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')
|
||||
+1
-1
@@ -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'),
|
||||
|
||||
Reference in new issue
Block a user