Commit 2cfede8d authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_pdm_ui_test: validate product used in tests

parent 430e21ae
......@@ -17,6 +17,11 @@ business_process = 'business_process_module/erp5_default_business_process'
quantity = 1
resource_value = portal.product_module["erp5_pdm_ui_test_product"]
if resource_value.getValidationState() != "validated":
resource_value.validate()
resource_value.setQuantityUnit('unit')
# Create an order or a packing list
if state in ['planned', 'ordered']:
module = portal.getDefaultModule(order_portal_type)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment