[fix] test-case, warehouse mandatory for mix type product bundle

This commit is contained in:
Rushabh Mehta
2015-08-03 15:09:48 +05:30
parent a208c56813
commit 5bd394278d
7 changed files with 63 additions and 20 deletions

View File

@@ -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):