dont run duplicate set status on submit

This commit is contained in:
RobertSchouten 2016-08-30 08:21:20 +08:00 committed by GitHub
parent d260602cae
commit ba4456b42b

View File

@ -47,8 +47,9 @@ class PurchaseReceipt(BuyingController):
def validate(self):
super(PurchaseReceipt, self).validate()
self.set_status()
if not self._action=="submit":
self.set_status()
self.po_required()
self.validate_with_previous_doc()
self.validate_inspection()