I am creating new module and want to attachment button to attach file with every new record.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
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>
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký