콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
14219 화면

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>

아바타
취소