Odoo Help

1

How can add attachment button on top of form view

By
Akhilesh Gupta
on 7/16/15, 2:44 AM 1,789 views

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

2

Solanki Shamji

--Solanki Shamji--
1298
| 5 2 6
Baroda, India
--Solanki Shamji--

Hello!

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
5
chirag jogi
On 7/24/15, 9:09 AM

Hello,

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">

 <header>

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

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

</header>

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: 7/16/15, 2:44 AM
Seen: 1789 times
Last updated: 11/24/15, 7:10 AM