Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
14216 มุมมอง

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>

อวตาร
ละทิ้ง