mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-15 07:28:39 +00:00
test(projects): set company on second project to fix CI mandatory error
The second Project in test_sales_order_link_is_not_overwritten_by_second_project was inserted without a company, which only succeeds when a default company is configured. On a fresh CI site this raised MandatoryError. Set company from the sales order explicitly.
This commit is contained in:
@@ -185,6 +185,7 @@ class TestProject(ERPNextTestSuite):
|
||||
second_project = frappe.get_doc(
|
||||
doctype="Project",
|
||||
project_name="Second project for same sales order",
|
||||
company=so.company,
|
||||
sales_order=so.name,
|
||||
).insert()
|
||||
self.assertEqual(second_project.sales_order, so.name)
|
||||
|
||||
Reference in New Issue
Block a user