Unit price should also be required for move to supplier

review791002
(transplanted from 08c21c1eaac77bdfaf38f548b7ce303be863402e)
This commit is contained in:
Cédric Krier committed 2013-04-16 15:30:21 +02:00
1 parent 42de3f397c
commit 0e87cddcbd
1 file changed
+4
+4
View File
@@ -281,6 +281,10 @@ class Move(ModelSQL, ModelView):
if (self.to_location
and self.to_location.type == 'customer'):
return True
if (self.from_location and self.to_location
and self.from_location.type == 'storage'
and self.to_location.type == 'supplier'):
return True
return False
@classmethod