mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
* fix: do not allow to inward same serial nos multiple times (#44617)
(cherry picked from commit 616bb383c5)
# Conflicts:
# erpnext/patches.txt
* chore: fix conflicts
---------
Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
7 lines
179 B
Python
7 lines
179 B
Python
import frappe
|
|
|
|
|
|
def execute():
|
|
if frappe.get_all("Company", filters={"country": "India"}, limit=1):
|
|
frappe.db.set_single_value("Stock Settings", "allow_existing_serial_no", 1)
|