Community mailing list archives

Re: Adding attachments in one2many line item fashion

Shawn Varghese
- 10/19/2015 06:19:40
Thanks a lot Husen,.
Based on your suggestion, I have created a many2one module referencing ir.attachment.

I also had another query. Is it possible to specify different data_dir locations? I understand that the encoding of filenames and folder structure cannot be encoded, but I would like to set a folder in the file system for all sales orders, a different one for HR and so on. Do you know how this could be achieved?

On Sun, Oct 18, 2015 at 4:52 PM, Husen Daudi <> wrote:

Hello Shawn,

To treat binary field as attachment and store based on Document Management configuration we need to make it attachment field and link to attachment object.
Many2one with ir.attachment will work.

We can override name get method for the field and display file name too.

Husen Daudi,
Managing Director,
Serpent Consulting Services,
M : +91-9033472982
S : husen.daudi
Follow : Twitter | FaceBook | LinkedIn

On 18-Oct-2015, at 6:17 PM, Shawn Varghese <> wrote:


Post to: