Error for Quotation auto_repeat

I got this error:

Title: frappe.automation.doctype.auto_repeat.auto_repeat.set_auto_repeat_as_completed
Error:
{‘event’: u’daily’, ‘retry’: 0, ‘log’: <function log at 0x7fadc921eed8>, ‘site’: u’*********‘, ‘job_name’: u’frappe.automation.doctype.auto_repeat.auto_repeat.set_auto_repeat_as_completed’, ‘method_name’: u’frappe.automation.doctype.auto_repeat.auto_repeat.set_auto_repeat_as_completed’, ‘method’: <function set_auto_repeat_as_completed at 0x7fadc8edd668>, ‘user’: u’Administrator’, ‘kwargs’: {}, ‘is_async’: True}
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 99, in execute_job
method(**kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/automation/doctype/auto_repeat/auto_repeat.py”, line 328, in set_auto_repeat_as_completed
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 271, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 313, in _save
self.validate_update_after_submit()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 709, in validate_update_after_submit
self._validate_update_after_submit()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 621, in _validate_update_after_submit
frappe.UpdateAfterSubmitError)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 360, in throw
msgprint(msg, raise_exception=exc, title=title, indicator=‘red’)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 346, in msgprint
_raise_exception()
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 315, in _raise_exception
raise raise_exception(msg)
UpdateAfterSubmitError: Not allowed to change Status after submission

Not able to cancel auto_repeat because the quotation submited
Not able to cancel quatation because the auto_repeat submited

How to solve?