dont run duplicate set status on submit
This commit is contained in:
parent
d260602cae
commit
ba4456b42b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user