6.0 : mail_gateway: Creation of history with attachment does not send res_model,res_id to ir.attachment!

Bug #705439 reported by David Mitchell (www.novapointgroup.com)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Status tracked in Trunk
6.0
Fix Released
Low
Jay Vora (Serpent Consulting Services)
Trunk
Fix Released
Low
OpenERP R&D Addons Team 1

Bug Description

mail_gateway error (6.0.0-RC2)
Description: Attachment Action button on Partner email history doesn’t resolve correctly

GTK Client
addons 4235
client 1772
server 3256
addons-community 295
addons-extra 5158
web 4326

To recreate:
Open a partner, look at the history tab, and the email table.
On an email listed (that you know has an attachment), click on the “Open Attachments” Action from the list.

Result
An empty Attachments List view is displayed.

Expected Result
We would see the attachment listed that is associated with this email.

NOTES: If double click the actual email in the partner history email list can navigate to the attached document to the email.

We believe the code problem is in here . . . mail_gateway.py

212
    def open_attachment(self, cr, uid, ids, context=None):

Tags: maintenance

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello David,

Thanks for the reporting, and i am confirming this bug.

Thanks again.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
importance: Undecided → Low
status: New → Confirmed
tags: added: maintenance
tfr (Openerp) (tfr)
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1) → nobody
Revision history for this message
David Mitchell (www.novapointgroup.com) (david-novapointgroup.com) wrote : Re: [Bug 705439] Re: 6.0.0-RC2 - mail_gateway open attachment from partner email list returns blank list

Attached is a patch that modifies your patch on the bug issue.

I had done small change on the patch applied because using the patch
given Open Attachment button is not displaying attachments. Am
attaching the modified patch with this mail.

Best Regards,

David Mitchell
President
NovaPoint Group LLC

On Mon, Jan 24, 2011 at 4:07 AM, tfr (Openerp)
<email address hidden> wrote:
> ** Changed in: openobject-addons
>     Assignee: OpenERP R&D Addons Team 1 (openerp-dev-addons1) => (unassigned)
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/705439
>
> Title:
>  6.0.0-RC2 - mail_gateway open attachment from partner email list
>  returns blank list
>
> Status in OpenERP Modules (addons):
>  Confirmed
>
> Bug description:
>  mail_gateway error (6.0.0-RC2)
>  Description: Attachment Action button on Partner email history doesn’t resolve correctly
>
>  GTK Client
>  addons 4235
>  client 1772
>  server 3256
>  addons-community 295
>  addons-extra 5158
>  web 4326
>
>
>  To recreate:
>  Open a partner, look at the history tab, and the email table.
>  On an email listed (that you know has an attachment), click on the “Open Attachments” Action from the list.
>
>  Result
>  An empty Attachments List view is displayed.
>
>  Expected Result
>  We would see the attachment listed that is associated with this email.
>
>  NOTES: If double click the actual email in the partner history email
>  list can navigate to the attached document to the email.
>
>  We believe the code problem is in here . . . mail_gateway.py
>
>  212
>      def open_attachment(self, cr, uid, ids, context=None):
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/openobject-addons/+bug/705439/+subscribe
>

Changed in openobject-addons:
assignee: nobody → Jay Vora (OpenERP) (jvo-openerp)
summary: - 6.0.0-RC2 - mail_gateway open attachment from partner email list returns
+ 6. 0 - mail_gateway open attachment from partner email list returns
blank list
summary: - 6. 0 - mail_gateway open attachment from partner email list returns
- blank list
+ 6.0 - mail_gateway open attachment from partner email list returns blank
+ list
Revision history for this message
Dhruti Shastri(OpenERP) (dhs-openerp) wrote : Re: 6.0 - mail_gateway open attachment from partner email list returns blank list

Hello David Mitchell,

I have tested the modified patch at my end and its working pretty fine.

It will be fixed soon on stable 6.0.1.

Thank you for pointing out and your contribution.

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been fixed by revision 4364 <email address hidden> on stable 6.0.1.
Thanks.

summary: - 6.0 - mail_gateway open attachment from partner email list returns blank
- list
+ 6.0 : mail_gateway: Creation of history with attachment does not send
+ res_model,res_id to ir.attachment!
Revision history for this message
Atul Patel(OpenERP) (atp-openerp) wrote :

Hello David Mitchell,

I have tested the modified patch and its working fine.

It has been fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-dev-addons1-atp

Revision ID: <email address hidden>
revno: 4655

This branch will be merged soon with Addons.

Thanks for your contribution.

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.