The below code is run on_submit only. It should also be run on_validate so that the document with incorrect information is not allowed to be saved until the time the approval is required.
def on_submit(self):
self.validate_cheque_info()
The below code is run on_submit only. It should also be run on_validate so that the document with incorrect information is not allowed to be saved until the time the approval is required.
def on_submit(self):
self.validate_cheque_info()