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:
Nabin Hait
2026-06-19 12:37:43 +05:30
parent b2eb6a69c1
commit 900c71840c

View File

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