mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
Revert "Autocreate naming series options based on Fiscal Year"
This reverts commit 8a6febbaa5.
This commit is contained in:
@@ -36,9 +36,6 @@ def setup_account(args=None):
|
|||||||
create_fiscal_year_and_company(args)
|
create_fiscal_year_and_company(args)
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
create_naming_series(args)
|
|
||||||
frappe.local.message_log = []
|
|
||||||
|
|
||||||
set_defaults(args)
|
set_defaults(args)
|
||||||
frappe.local.message_log = []
|
frappe.local.message_log = []
|
||||||
|
|
||||||
@@ -130,21 +127,6 @@ def create_fiscal_year_and_company(args):
|
|||||||
|
|
||||||
args["curr_fiscal_year"] = curr_fiscal_year
|
args["curr_fiscal_year"] = curr_fiscal_year
|
||||||
|
|
||||||
def create_naming_series(args):
|
|
||||||
for doctype in ("Production Order", "Supplier Quotation", "Purchase Order",
|
|
||||||
"Purchase Invoice", "Purchase Receipt", "Opportunity", "Quotation",
|
|
||||||
"Sales Order", "Sales Invoice", "Delivery Note", "Installation Note",
|
|
||||||
"Customer Issue", "Journal Voucher"):
|
|
||||||
|
|
||||||
naming_series = frappe.get_doc("Naming Series")
|
|
||||||
naming_series.select_doc_for_series = doctype
|
|
||||||
|
|
||||||
# append fiscal year name to existing series
|
|
||||||
existing_series = frappe.get_meta(doctype).get_field("naming_series").options.split("\n")
|
|
||||||
naming_series.set_options = "\n".join(existing_series + ["{}{}-".format(existing_series[0], args["curr_fiscal_year"])])
|
|
||||||
|
|
||||||
naming_series.update_series()
|
|
||||||
|
|
||||||
def create_price_lists(args):
|
def create_price_lists(args):
|
||||||
for pl_type in ["Selling", "Buying"]:
|
for pl_type in ["Selling", "Buying"]:
|
||||||
frappe.get_doc({
|
frappe.get_doc({
|
||||||
|
|||||||
Reference in New Issue
Block a user