mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-27 13:55:19 +00:00
chore: resolve conflict
This commit is contained in:
@@ -3,19 +3,6 @@ from frappe.query_builder import Case
|
||||
|
||||
|
||||
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.
|
||||
column_values = (
|
||||
("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)]
|
||||
if not existing:
|
||||
return
|
||||
>>>>>>> 6bdc18b (fix(asset): skip missing checkbox columns in asset type patch (#58416))
|
||||
|
||||
Asset = frappe.qb.DocType("Asset")
|
||||
case = Case()
|
||||
|
||||
Reference in New Issue
Block a user