Make supplier fields are not visible for supplier to supplier moves

issue6436
review36321002
This commit is contained in:
Cédric Krier committed 2017-06-24 10:27:30 +02:00
1 parent f510a6b963
commit dc88413648
1 file changed
+2
+2
View File
@@ -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':