mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-13 06:31:48 +00:00
fix(manufacturing): type whitelisted BOM arguments
This commit is contained in:
@@ -854,7 +854,7 @@ class BOM(WebsiteGenerator):
|
||||
self.add_materials_from_bom(row.finished_good, row.bom_no, row.idx, qty=row.finished_good_qty)
|
||||
|
||||
@frappe.whitelist()
|
||||
def add_raw_materials(self, operation_row_id, items):
|
||||
def add_raw_materials(self, operation_row_id: str, items: str | list[dict]) -> None:
|
||||
if isinstance(items, str):
|
||||
items = parse_json(items)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user