Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Why Attachment in double???

By
Pascal Tremblay
on 12/21/14, 10:54 AM 992 views

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

 

0

Ivan

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
Ivan
On 1/8/15, 6:28 AM

@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.

0

Ludo - Neobis

--Ludo - Neobis--
2387
| 2 2 5
Hoogvliet, Netherlands
--Ludo - Neobis--

Developer

Ludo - Neobis
On 1/8/15, 5:34 AM

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.

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

Pascal Tremblay
on 1/8/15, 5:39 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/21/14, 10:54 AM
Seen: 992 times
Last updated: 3/16/15, 8:10 AM