mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
[fix] [minor] naming series patch fix
This commit is contained in:
@@ -5,6 +5,14 @@ from __future__ import unicode_literals
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
selling_price_list = webnotes.conn.get_value("Selling Settings", None, "selling_price_list")
|
||||||
|
if selling_price_list and not webnotes.conn.exists("Price List", selling_price_list):
|
||||||
|
webnotes.conn.set_value("Selling Settings", None, "selling_price_list", None)
|
||||||
|
|
||||||
|
buying_price_list = webnotes.conn.get_value("Buying Settings", None, "buying_price_list")
|
||||||
|
if buying_price_list and not webnotes.conn.exists("Price List", buying_price_list):
|
||||||
|
webnotes.conn.set_value("Buying Settings", None, "buying_price_list", None)
|
||||||
|
|
||||||
# reset property setters for series
|
# reset property setters for series
|
||||||
for name in ("Stock Settings", "Selling Settings", "Buying Settings", "HR Settings"):
|
for name in ("Stock Settings", "Selling Settings", "Buying Settings", "HR Settings"):
|
||||||
webnotes.bean(name, name).save()
|
webnotes.bean(name, name).save()
|
||||||
Reference in New Issue
Block a user