code: def unregister_signals(self):
          
          # Unregister Record signals
          if hasattr(self, 'update_function'):
              records_signals.before_record_insert.disconnect(
                  self.update_function)
              records_signals.before_record_update.disconnect(
                  self.update_function)
          self.unregister_signals_oaiset()
docs: Unregister signals.