mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 16:15:02 +00:00
fix: timeout error in the Purchase Invoice
This commit is contained in:
@@ -274,6 +274,11 @@ class BuyingController(SubcontractingController):
|
||||
if self.doctype not in ("Purchase Receipt", "Purchase Invoice", "Purchase Order"):
|
||||
return
|
||||
|
||||
if (
|
||||
self.doctype == "Purchase Invoice" and not self.update_stock and not self.is_internal_transfer()
|
||||
):
|
||||
return
|
||||
|
||||
ref_doctype_map = {
|
||||
"Purchase Order": "Sales Order Item",
|
||||
"Purchase Receipt": "Delivery Note Item",
|
||||
|
||||
Reference in New Issue
Block a user