I am having the same issue with this. According to my console, it looks like the issue is related to creating Time Logs for the production order (which occurs when there are BOM Operations that need to be scheduled).
Specifically, it can’t create the Time Logs because Activity Type and Notes are required to create a Time Log, but there’s no way of specifying which ones to use from the Production Order screen.
Here is my traceback:
Traceback (innermost last):
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/app.py", line 57, in application
response = frappe.handler.handle()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py", line 19, in handle
execute_cmd(cmd)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/handler.py", line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/__init__.py", line 805, in call
return fn(*args, **newargs)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/desk/form/save.py", line 18, in savedocs
doc.save()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 255, in save
self.run_post_save_methods()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 634, in run_post_save_methods
self.run_method("on_submit")
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 575, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 731, in composer
return composed(self, method, *args, **kwargs)
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 714, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 569, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/ubuntu/frappe-bench/apps/erpnext/erpnext/manufacturing/doctype/production_order/production_order.py", line 157, in on_submit
self.make_time_logs()
File "/home/ubuntu/frappe-bench/apps/erpnext/erpnext/manufacturing/doctype/production_order/production_order.py", line 250, in make_time_logs
time_log.save()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 231, in save
self.insert()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 194, in insert
self._validate()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 337, in _validate
self._validate_mandatory()
File "/home/ubuntu/frappe-bench/apps/frappe/frappe/model/document.py", line 528, in _validate_mandatory
raise frappe.MandatoryError(", ".join((each[0] for each in missing)))
MandatoryError: activity_type, notes