Odoo Help


3 Answers

Felipe Colombia


| 5 5 10
Bogotá, Colombia
Informatics engineer Industrial engineer
Felipe Colombia
5/2/13, 5:34 PM

As I did not found any configuration to make this, a simple code modification made the trick.

In the form view of the wizard replace

<field name="attachment_ids" widget="many2many_binary"/>


<field name="attachment_ids"/>

That's all

You can also have both options(widgets) if you create another attachment_ids2 field and add their values in the post_values inside function send_mail.

'attachments': [(attach.datas_fname or attach.name,base64.b64decode(attach.datas)) for attach in wizard.attachment_ids]+[(attach.datas_fname or attach.name, base64.b64decode(attach.datas)) for attach in  wizard.attachment_ids2],

Modifying the source code is not recommended, the good practice is to create a custom module than implements this.


Borni DHIFI Tunisia

--Borni DHIFI--
| 7 9 11
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 


Skype : dhifi.borni

Borni DHIFI Tunisia
4/29/13, 6:45 PM

why not use the function share ? go to menu documents and share your document.

1 Comment
Felipe Colombia
4/30/13, 12:58 AM

that functionality is completely different, there you send a link and a username,password,database to share the openerp document and give permissions to edit or view


  • share wizard doesn't have the partners relationship unlike mail.message

  • share wizard is not shown in every form view unlike mail.message

  • share wizard does not have the templates features

  • share wizard does not have the wysiwyg editor

  • you should be able to select more than one attachment per email


Martin Canada


| 6 6 10
Cornwall, Canada

Analysing, designing, coding and mentoring since 1975. Kilobytes to terabytes. Punch cards to punchy sites. My OpenERP video series: http://www.youtube.com/playlist?list=PLq7op4J183lX44ZlXPiHxUpRvmmRDtxye My Google Speadsheets --> OpenERP Data Pump project: http://martinhbramwell.github.io/GData_OpenERP_Data_Pump My email (with spaces removed) : mhb . warehouseman @ gmail . com

Martin Canada
4/29/13, 2:18 PM

Have a look at Settings >> Technical >> Low Level Objects >> Attachments.

That will allow you to edit existing attachments.

This might help too:

Can i attach existing file from google docs?

1 Comment
Felipe Colombia
4/29/13, 2:21 PM

yes, in that menu I can edit and manage the attachments, but that is not the question.

Ask a Question
Keep Informed
0 follower(s)
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.

Odoo Training Center

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

Test it now