Odoo Help


How can add attachment button on top of form view

Akhilesh Gupta
on 7/16/15, 2:44 AM 3,080 views

I am creating new module and want to attachment button to attach file with every new record.


Solanki Shamji

--Solanki Shamji--

| 5 2 7
Baroda, India
--Solanki Shamji--


Solanki Shamji
On 7/16/15, 3:28 AM

Install Document Management System module or give dependency in your module so attachment button will appearer on each record.

Thanks alot dear...

Akhilesh Gupta
on 7/16/15, 3:47 AM
chirag jogi
On 7/24/15, 9:09 AM


you can add your attachment button in header like this,

 <record model="ir.ui.view" id="action_view_demo">

<field name="name">demo</field>

<field name="model">demo.demo</field>

<field name="arch" type="xml">

<form string="Demo Form">


<button name="button_attachment" string="Attachment"

type="object" icon="gtk-go-forward" colspan='1' />


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

Question tools

1 follower(s)


Asked: 7/16/15, 2:44 AM
Seen: 3080 times
Last updated: 11/24/15, 7:10 AM