Add test on domain of relation fields

issue10794
review383081002
This commit is contained in:
Cédric Krier committed 2021-10-03 13:45:32 +02:00
1 parent b31101304b
commit e6113342a5
1 file changed
+3 -3
+3 -3
View File
@@ -83,7 +83,7 @@ class Location(DeactivableMixin, tree(), ModelSQL, ModelView):
domain=[
('type', '=', 'storage'),
['OR',
('parent', 'child_of', [Eval('id')]),
('parent', 'child_of', [Eval('id', -1)]),
('parent', '=', None),
],
],
@@ -97,7 +97,7 @@ class Location(DeactivableMixin, tree(), ModelSQL, ModelView):
domain=[
('type', '=', 'storage'),
['OR',
('parent', 'child_of', [Eval('id')]),
('parent', 'child_of', [Eval('id', -1)]),
('parent', '=', None)]],
depends=['type', 'id'],
help="Where outgoing stock is sent from.")
@@ -109,7 +109,7 @@ class Location(DeactivableMixin, tree(), ModelSQL, ModelView):
domain=[
('type', 'in', ['storage', 'view']),
['OR',
('parent', 'child_of', [Eval('id')]),
('parent', 'child_of', [Eval('id', -1)]),
('parent', '=', None)]],
depends=['type', 'id'],
help="The top level location where stock is stored.")