fix: renamed "supplier_warehouse" to "set_from_warehouse" (#24816)

* fix: reverting and adding new field for supplier warehouse
This commit is contained in:
Afshan
2021-03-09 22:25:48 +05:30
committed by GitHub
parent 832098f042
commit 27bcb2a064
3 changed files with 17 additions and 5 deletions

View File

@@ -278,7 +278,7 @@ class BuyingController(StockController):
if self.is_subcontracted == "Yes":
if self.doctype in ["Purchase Receipt", "Purchase Invoice"] and not self.supplier_warehouse:
frappe.throw(_("Supplier Warehouse mandatory for sub-contracted Purchase Receipt"))
frappe.throw(_("Supplier Warehouse mandatory for sub-contracted {0}").format(self.doctype))
for item in self.get("items"):
if item in self.sub_contracted_items and not item.bom: