Browse Source

[FIX] inherit problem

column "sent" of relation mail_compose_message does not exist
pull/1/head
Ivan Yelizariev 9 years ago
parent
commit
97d7d16ba1
  1. 7
      models.py

7
models.py

@ -18,3 +18,10 @@ class mail_notification(models.Model):
def _notify(self, cr, uid, message_id, **kwargs): def _notify(self, cr, uid, message_id, **kwargs):
super(mail_notification, self)._notify(cr, uid, message_id, **kwargs) super(mail_notification, self)._notify(cr, uid, message_id, **kwargs)
self.pool['mail.message'].browse(cr, uid, message_id)._get_sent() self.pool['mail.message'].browse(cr, uid, message_id)._get_sent()
class mail_compose_message(models.TransientModel):
_inherit = 'mail.compose.message'
sent = fields.Boolean('Sent', help='dummy field to fix inherit error')
Loading…
Cancel
Save