Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
14207 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

Thanks alot dear...

Najlepsza odpowiedź

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>

Awatar
Odrzuć