mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
fix: BOM name issue (#44575)
fix: bom name issue
(cherry picked from commit b7a3c6b6ca)
# Conflicts:
# erpnext/manufacturing/doctype/bom/bom.py
This commit is contained in:
@@ -109,7 +109,16 @@ class BOM(WebsiteGenerator):
|
|||||||
def autoname(self):
|
def autoname(self):
|
||||||
# ignore amended documents while calculating current index
|
# ignore amended documents while calculating current index
|
||||||
existing_boms = frappe.get_all(
|
existing_boms = frappe.get_all(
|
||||||
|
<<<<<<< HEAD
|
||||||
"BOM", filters={"item": self.item, "amended_from": ["is", "not set"]}, pluck="name"
|
"BOM", filters={"item": self.item, "amended_from": ["is", "not set"]}, pluck="name"
|
||||||
|
=======
|
||||||
|
"BOM", filters={"name": search_key, "amended_from": ["is", "not set"]}, pluck="name"
|
||||||
|
>>>>>>> b7a3c6b6ca (fix: BOM name issue (#44575))
|
||||||
|
)
|
||||||
|
|
||||||
|
if not existing_boms:
|
||||||
|
existing_boms = frappe.get_all(
|
||||||
|
"BOM", filters={"name": ("like", search_key), "amended_from": ["is", "not set"]}, pluck="name"
|
||||||
)
|
)
|
||||||
|
|
||||||
if existing_boms:
|
if existing_boms:
|
||||||
|
|||||||
Reference in New Issue
Block a user