mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 16:56:57 +00:00
dont run duplicate set status on submit
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user