Add shipment domain on production moves

The production moves can not be also linked to shipment and this has the
advantage to hide the column in production moves views.

issue5110
review16801002
This commit is contained in:
Cédric Krier committed 2015-11-15 11:25:30 -03:00
1 parent 03252a33a4
commit 5296f2545f
1 file changed
+2
+2
View File
@@ -104,6 +104,7 @@ class Production(Workflow, ModelSQL, ModelView):
readonly=True), 'get_cost')
inputs = fields.One2Many('stock.move', 'production_input', 'Inputs',
domain=[
('shipment', '=', None),
('from_location', 'child_of', [Eval('warehouse')], 'parent'),
('to_location', '=', Eval('location')),
('company', '=', Eval('company', -1)),
@@ -115,6 +116,7 @@ class Production(Workflow, ModelSQL, ModelView):
depends=['warehouse', 'location', 'company'])
outputs = fields.One2Many('stock.move', 'production_output', 'Outputs',
domain=[
('shipment', '=', None),
('from_location', '=', Eval('location')),
('to_location', 'child_of', [Eval('warehouse')], 'parent'),
('company', '=', Eval('company', -1)),