Odoo Help

Welcome!

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

1

How can add attachment button on top of form view

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

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

2

Solanki Shamji

--Solanki Shamji--
1293
| 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
1
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>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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