[Trunk] can't able to send email from reply button

Bug #1212190 reported by Pariket Trivedi(OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 1

Bug Description

To reproduce the bug on runbot go to settings -> Technical -> Email -> Emails -> click to reply button then generate error

Traceback (most recent call last):
  File "/home/odoo/runbot/static/openerp-dev-trunk-17472/server/openerp/addons/web/http.py", line 314, in dispatch
    response["result"] = self._call_function(**self.params)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17472/server/openerp/addons/web/http.py", line 174, in _call_function
    return self.func(*args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17472/server/openerp/addons/web/http.py", line 1048, in nfunc
    return func(*args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17472/server/openerp/addons/web/controllers/main.py", line 1091, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17472/server/openerp/addons/web/controllers/main.py", line 1083, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17472/server/openerp/addons/mail/wizard/mail_compose_message.py", line 84, in default_get
    vals = self.get_message_data(cr, uid, message_id, context=context)
  File "/home/odoo/runbot/static/openerp-dev-trunk-17472/server/openerp/addons/mail/wizard/mail_compose_message.py", line 209, in get_message_data
    reply_subject = tools.ustr(message_data.subject or message_data.record_name or '')
  File "/home/odoo/runbot/static/openerp-dev-trunk-17472/server/openerp/osv/orm.py", line 484, in __getattr__
    return self[name]
  File "/home/odoo/runbot/static/openerp-dev-trunk-17472/server/openerp/osv/orm.py", line 419, in __getitem__
    raise KeyError('Field %s not found in %s'%(name, self))
AttributeError: Got KeyError('Field subject not found in browse_record(mail.message, 130)',) while trying to get attribute subject on a mail.message record.

Related branches

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Jaydeep Barot(OpenERP) (jaydeep.barot-openerp) wrote :

Hello,

I have Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1212190-jar
Revision ID: <email address hidden>
revision no :- 8902

Thanks,
Jaydeep Barot.

Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Fix Committed
Revision history for this message
Thibault Delavallée (OpenERP) (tde-openerp) wrote :

Fixed in 7 at revision 9644 Revision ID: <email address hidden>

Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.