mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-16 10:20:31 +00:00
chore: resolve conflict
This commit is contained in:
@@ -3,19 +3,6 @@ from frappe.query_builder import Case
|
|||||||
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
<<<<<<< HEAD
|
|
||||||
required_columns = [
|
|
||||||
"is_existing_asset",
|
|
||||||
"is_composite_asset",
|
|
||||||
"is_composite_component",
|
|
||||||
]
|
|
||||||
|
|
||||||
# Skip patch if any required column is missing
|
|
||||||
if not all(frappe.db.has_column("Asset", col) for col in required_columns):
|
|
||||||
return
|
|
||||||
|
|
||||||
Asset = frappe.qb.DocType("Asset")
|
|
||||||
=======
|
|
||||||
# v15 sites never had is_composite_component; only migrate columns that exist.
|
# v15 sites never had is_composite_component; only migrate columns that exist.
|
||||||
column_values = (
|
column_values = (
|
||||||
("is_existing_asset", "Existing Asset"),
|
("is_existing_asset", "Existing Asset"),
|
||||||
@@ -25,7 +12,6 @@ def execute():
|
|||||||
existing = [(col, value) for col, value in column_values if frappe.db.has_column("Asset", col)]
|
existing = [(col, value) for col, value in column_values if frappe.db.has_column("Asset", col)]
|
||||||
if not existing:
|
if not existing:
|
||||||
return
|
return
|
||||||
>>>>>>> 6bdc18b (fix(asset): skip missing checkbox columns in asset type patch (#58416))
|
|
||||||
|
|
||||||
Asset = frappe.qb.DocType("Asset")
|
Asset = frappe.qb.DocType("Asset")
|
||||||
case = Case()
|
case = Case()
|
||||||
|
|||||||
Reference in New Issue
Block a user