feat(Sales Invoice): allow linking to project without adding timesheets (#44295)

* feat(Sales Invoice): allow linking to project without adding timesheets

* test: add timesheet data
This commit is contained in:
Raffael Meyer
2025-01-27 08:50:57 +01:00
committed by GitHub
parent 2ac8c92e7f
commit 11f65f20a0
2 changed files with 8 additions and 4 deletions

View File

@@ -62,6 +62,7 @@ class TestTimesheet(IntegrationTestCase):
)
sales_invoice = create_sales_invoice(do_not_save=True)
sales_invoice.project = project
sales_invoice._add_timesheet_data()
sales_invoice.submit()
ts = frappe.get_doc("Timesheet", timesheet.name)