Browse Source

[FIX] Synchronize parameter id in both notifications that fix get message error when triggered "mail_move_message.delete_message" notification

pull/36/head
x620 9 years ago
parent
commit
3ebab398b0
  1. 2
      mail_move_message/mail_move_message_models.py

2
mail_move_message/mail_move_message_models.py

@ -198,7 +198,7 @@ class wizard(models.TransientModel):
msg_id = self.message_id.id msg_id = self.message_id.id
# Send notification # Send notification
notification = {'message_ids': [msg_id]}
notification = {'id': msg_id}
self.env['bus.bus'].sendone((self._cr.dbname, 'mail_move_message.delete_message'), notification) self.env['bus.bus'].sendone((self._cr.dbname, 'mail_move_message.delete_message'), notification)
self.message_id.unlink() self.message_id.unlink()

Loading…
Cancel
Save