From dc88413648fc986862b76fb153d9b67970fa0dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 24 Jun 2017 10:27:30 +0200 Subject: [PATCH] Make supplier fields are not visible for supplier to supplier moves issue6436 review36321002 --- stock.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stock.py b/stock.py index 3ad00c76c4..f3055f46d1 100644 --- a/stock.py +++ b/stock.py @@ -273,6 +273,8 @@ class Move: def on_change_with_purchase_visible(self, name=None): if self.from_location: if self.from_location.type == 'supplier': + if self.to_location and self.to_location == 'supplier': + return False return True elif self.to_location: if self.to_location.type == 'supplier':