|
|
@ -48,7 +48,8 @@ class StockPicking(models.Model): |
|
|
|
pickings = self.env['stock.picking'].search(domain) |
|
|
|
total = len(pickings) |
|
|
|
for idx, picking in enumerate(pickings): |
|
|
|
_logger.debug('Send Sms for picking %s, progress %s/%s', picking, idx, total) |
|
|
|
_logger.debug('Send Sms for picking %s, progress %s/%s', picking, |
|
|
|
idx, total) |
|
|
|
vals = picking._prepare_availability_by_sms_notification() |
|
|
|
self.env['sms.sms'].create(vals) |
|
|
|
picking.write({'availability_sent_by_sms': True}) |
|
|
|