Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
14316 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Автор

Thanks alot dear...

Найкраща відповідь

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>

Аватар
Відмінити