mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
(cherry picked from commit 096e7b9ec5)
Co-authored-by: Britlog <info@britlog.com>
This commit is contained in:
@@ -602,14 +602,6 @@ class Item(WebsiteGenerator):
|
|||||||
frappe.throw(_("Barcode {0} is not a valid {1} code").format(
|
frappe.throw(_("Barcode {0} is not a valid {1} code").format(
|
||||||
item_barcode.barcode, item_barcode.barcode_type), InvalidBarcode)
|
item_barcode.barcode, item_barcode.barcode_type), InvalidBarcode)
|
||||||
|
|
||||||
if item_barcode.barcode != item_barcode.name:
|
|
||||||
# if barcode is getting updated , the row name has to reset.
|
|
||||||
# Delete previous old row doc and re-enter row as if new to reset name in db.
|
|
||||||
item_barcode.set("__islocal", True)
|
|
||||||
item_barcode_entry_name = item_barcode.name
|
|
||||||
item_barcode.name = None
|
|
||||||
frappe.delete_doc("Item Barcode", item_barcode_entry_name)
|
|
||||||
|
|
||||||
def validate_warehouse_for_reorder(self):
|
def validate_warehouse_for_reorder(self):
|
||||||
'''Validate Reorder level table for duplicate and conditional mandatory'''
|
'''Validate Reorder level table for duplicate and conditional mandatory'''
|
||||||
warehouse = []
|
warehouse = []
|
||||||
|
|||||||
Reference in New Issue
Block a user