Skip to content

Commit

Permalink
fix(patch): enable existing serial no in stock settings (#35762)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-aga-r committed Jun 17, 2023
1 parent b875de6 commit 3c790c1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/patches.txt
Original file line number Diff line number Diff line change
Expand Up @@ -333,3 +333,4 @@ erpnext.patches.v14_0.migrate_gl_to_payment_ledger
erpnext.patches.v14_0.update_company_in_ldc
erpnext.patches.v14_0.set_packed_qty_in_draft_delivery_notes
erpnext.patches.v14_0.cleanup_workspaces
erpnext.patches.v14_0.enable_allow_existing_serial_no
9 changes: 9 additions & 0 deletions erpnext/patches/v14_0/enable_allow_existing_serial_no.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt

import frappe


def execute():
frappe.reload_doc("stock", "doctype", frappe.scrub("Stock Settings"))
frappe.db.set_single_value("Stock Settings", "allow_existing_serial_no", 1, update_modified=False)

0 comments on commit 3c790c1

Please sign in to comment.