Commits

Raimon Esteve (Zikzakmedia)  committed 3943e36

Add info log when copy subscription

  • Participants
  • Parent commits e2d500e

Comments (0)

Files changed (1)

File subscription.py

 
     @classmethod
     def model_copy(cls, subscription_id):
+        logger.info('Running subscription ID %s.' % subscription_id)
+
         Cron = Pool().get('ir.cron')
         History = Pool().get('subscription.history')
         subscription = cls(subscription_id)
             # subscriptio to done
             if remaining == 1:
                 subscription.write([subscription], {'state': 'done'})
+            logger.info('End subscription ID %s.' % subscription_id)
         else:
             logger.error('Document in subscription %s not found.\n' % \
                          subscription.name)