Unit price should also be required for move to supplier
review791002 (transplanted from 08c21c1eaac77bdfaf38f548b7ce303be863402e)
This commit is contained in:
1 parent
42de3f397c
commit
0e87cddcbd
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user