mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +00:00
[fix] test-case, warehouse mandatory for mix type product bundle
This commit is contained in:
@@ -26,7 +26,13 @@ def make_item(item_code, properties=None):
|
||||
|
||||
if properties:
|
||||
item.update(properties)
|
||||
item.insert()
|
||||
|
||||
|
||||
if item.is_stock_item and not item.default_warehouse:
|
||||
item.default_warehouse = "_Test Warehouse - _TC"
|
||||
|
||||
item.insert()
|
||||
|
||||
return item
|
||||
|
||||
class TestItem(unittest.TestCase):
|
||||
|
||||
Reference in New Issue
Block a user