fix: create Quality Inspection button not showing (#47746)

This commit is contained in:
rohitwaghchaure
2025-05-27 12:18:39 +05:30
committed by GitHub
parent 64cb693173
commit d8cb073eaf
3 changed files with 20 additions and 1 deletions

View File

@@ -31,6 +31,14 @@ class SellingController(StockController):
)
)
if self.docstatus == 1 and self.doctype in ["Delivery Note", "Sales Invoice"]:
self.set_onload(
"allow_to_make_qc_after_submission",
frappe.db.get_single_value(
"Stock Settings", "allow_to_make_quality_inspection_after_purchase_or_delivery"
),
)
def validate(self):
super().validate()
self.validate_items()