Odoo Help

0

Why Attachment in double???

By
Pascal Tremblay
on 12/21/14, 10:54 AM 1,136 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--
3255
| 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--
2407
| 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

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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