Browse Source

continue refactoring, fix some error, add multi-company support

pull/130/head
Sébastien BEAU 9 years ago
committed by MonsieurB
parent
commit
a07672f1d8
  1. 7
      sms_send_picking/stock.py

7
sms_send_picking/stock.py

@ -35,9 +35,9 @@ class StockPicking(models.Model):
gateway = self.env['sms.gateway'].search([ gateway = self.env['sms.gateway'].search([
('default_gateway', '=', True)], limit=1) ('default_gateway', '=', True)], limit=1)
return { return {
'gateway': gateway.id,
'message': _('Your picking %s is ready to transfert') % pick.name,
'mobile': self.partner_id.phone,
'gateway_id': gateway.id,
'message': _('Your picking %s is ready to transfert') % self.name,
'mobile': self.partner_id.mobile,
'partner_id': self.partner_id.id, 'partner_id': self.partner_id.id,
'state': 'draft', 'state': 'draft',
'validity': gateway.validity, 'validity': gateway.validity,
@ -46,6 +46,7 @@ class StockPicking(models.Model):
'priority': gateway.priority, 'priority': gateway.priority,
'coding': gateway.coding, 'coding': gateway.coding,
'nostop': gateway.nostop, 'nostop': gateway.nostop,
'company_id': self.company_id.id,
} }
@api.model @api.model

Loading…
Cancel
Save