test: specify warehouse list to avoid error (#25174)
* test: specify warehouse list to avoid error * test: get_all_warehouses of BOM company
This commit is contained in:
parent
b7481633b1
commit
cce3efe0c1
@ -134,7 +134,13 @@ class TestBOM(unittest.TestCase):
|
||||
bom.items[0].conversion_factor = 6
|
||||
bom.insert()
|
||||
|
||||
reset_item_valuation_rate(item_code='_Test Item', qty=200, rate=200)
|
||||
reset_item_valuation_rate(
|
||||
item_code='_Test Item',
|
||||
warehouse_list=frappe.get_all("Warehouse",
|
||||
{"is_group":0, "company": bom.company}, pluck="name"),
|
||||
qty=200,
|
||||
rate=200
|
||||
)
|
||||
|
||||
bom.update_cost()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user