Merge pull request #28038 from frappe/mergify/bp/version-13-hotfix/pr-28036

fix: incorrect field name (backport #28036)
This commit is contained in:
mergify[bot]
2021-10-20 20:55:00 +05:30
committed by GitHub
parent 8fffd1597d
commit 1fae8f1fcb

View File

@@ -424,7 +424,7 @@ class ProductionPlan(Document):
po = frappe.new_doc('Purchase Order')
po.supplier = supplier
po.schedule_date = getdate(po_list[0].schedule_date) if po_list[0].schedule_date else nowdate()
po.is_subcontracted_item = 'Yes'
po.is_subcontracted = 'Yes'
for row in po_list:
args = {
'item_code': row.production_item,