From 5296f2545f9cc87be69437b8ec417dc7de618806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 15 Nov 2015 11:25:30 -0300 Subject: [PATCH] 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 --- production.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/production.py b/production.py index da148523b2..6236127460 100644 --- a/production.py +++ b/production.py @@ -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)),