mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
fix: patch for naming series property setter
This commit is contained in:
committed by
Ankush Menat
parent
7fcaeca403
commit
54184e54ed
@@ -306,6 +306,7 @@ erpnext.patches.v13_0.requeue_failed_reposts
|
|||||||
erpnext.patches.v13_0.update_job_card_status
|
erpnext.patches.v13_0.update_job_card_status
|
||||||
erpnext.patches.v12_0.update_production_plan_status
|
erpnext.patches.v12_0.update_production_plan_status
|
||||||
erpnext.patches.v13_0.healthcare_deprecation_warning
|
erpnext.patches.v13_0.healthcare_deprecation_warning
|
||||||
|
erpnext.patches.v13_0.item_naming_series_not_mandatory
|
||||||
erpnext.patches.v14_0.delete_healthcare_doctypes
|
erpnext.patches.v14_0.delete_healthcare_doctypes
|
||||||
erpnext.patches.v13_0.update_category_in_ltds_certificate
|
erpnext.patches.v13_0.update_category_in_ltds_certificate
|
||||||
erpnext.patches.v13_0.create_pan_field_for_india #2
|
erpnext.patches.v13_0.create_pan_field_for_india #2
|
||||||
|
|||||||
11
erpnext/patches/v13_0/item_naming_series_not_mandatory.py
Normal file
11
erpnext/patches/v13_0/item_naming_series_not_mandatory.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
from erpnext.setup.doctype.naming_series.naming_series import set_by_naming_series
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
|
||||||
|
stock_settings = frappe.get_doc("Stock Settings")
|
||||||
|
|
||||||
|
set_by_naming_series("Item", "item_code",
|
||||||
|
stock_settings.get("item_naming_by")=="Naming Series", hide_name_field=True, make_mandatory=0)
|
||||||
Reference in New Issue
Block a user