Skip to Content
Menú
This question has been flagged
2 Respostes
3446 Vistes

Hey! look at this!

I clean all attachment who contains 016.

I send quotation to my customer.

I come back in attachment. And HO!!!!!  two attachments...

What is the problem?

_________________________________________________________________________________________

 

New situation here. See my logging of the ../openerp/addons/base/ir/ir_attachment.py. We can clearly see the ids in double... Somebody could explains this?

2015-01-07 20:47:44,728 25433 INFO officielle werkzeug: 192.168.1.1 - - [07/Jan/2015 20:47:44] "GET /web/js/web.assets_common/6b73e28 HTTP/1.1" 200 -

2015-01-07 20:47:44,730 25433 INFO officielle werkzeug: 192.168.1.1 - - [07/Jan/2015 20:47:44] "GET /web/css/web.assets_common/6b73e28 HTTP/1.1" 200 -

2015-01-07 20:47:44,851 25433 ERROR officielle openerp.addons.base.ir.ir_attachment: ids in _search() = [1971]

2015-01-07 20:47:44,851 25433 ERROR officielle openerp.addons.base.ir.ir_attachment: ids in _search()2 = set([1971])

2015-01-07 20:47:44,852 25433 ERROR officielle openerp.addons.base.ir.ir_attachment: ids in _search() = [1970]

2015-01-07 20:47:44,852 25433 ERROR officielle openerp.addons.base.ir.ir_attachment: ids in _search()2 = set([1970])

2015-01-07 20:47:44,852 25433 ERROR officielle openerp.addons.base.ir.ir_attachment: ids in read() = [1971]

2015-01-07 20:47:44,853 25433 ERROR officielle openerp.addons.base.ir.ir_attachment: ids in read() = [1970]

2015-01-07 20:47:44,853 25433 ERROR officielle openerp.addons.base.ir.ir_attachment: ids in read() = [1971]

2015-01-07 20:47:44,854 25433 ERROR officielle openerp.addons.base.ir.ir_attachment: ids in read() = [1970]

2015-01-07 20:47:44,877 25433 INFO officielle werkzeug: 192.168.1.1 - - [07/Jan/2015 20:47:44] "GET /web/css/web.assets_backend/3a2e282 HTTP/1.1" 200

 

Avatar
Descartar
Best Answer

Most likely issue on the template. If you fill in both the "files to send" (or something like that) AND the "report to generate and attach" fields then Odoo will try to add them both, resulting in 2 files.

Easy check to see if this is the case; open the mail and check if attachments are double as well.

Avatar
Descartar
Autor

Attachment pdf in email are NEVER double. Just in Settings->Database->Attachments. Thanks

Best Answer

@Pascal, if you try to restart the server, are there still 2 attachments?  My theory is that the attachment got attached to the email wizard first, then transferred to the sale.order/quotation.  As the email wizard is TransientModel, it should be clean up periodically.  Restart forces the clean up.

Avatar
Descartar