Esempio n. 1
0
 def add_checkpoint(self, record, message=''):
     """
     @param message: used with this
     https://github.com/OCA/connector/issues/37
     """
     self.ensure_one()
     record.ensure_one()
     chk_point = checkpoint.add_checkpoint(self.env, record._name,
                                           record.id, self._name, self.id)
     if message:
         chk_point.message_post(body=message)
     return chk_point
Esempio n. 2
0
 def add_checkpoint(self, record):
     self.ensure_one()
     record.ensure_one()
     return checkpoint.add_checkpoint(self.env, record._name, record.id,
                                      self._name, self.id)