I'm new to developing Odoo and need to add a button in the header order detail , how do I can do? attached image https://s3-us-west-1.amazonaws.com/cebrasite/Captura+de+pantalla+2016-01-14+a+las+20.53.11.png
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
3
ตอบกลับ
5518
มุมมอง
Yes, it may help in this matter.
in xml code :
button name=" button_name" string="name to display" type="object" class="oe_highlight"
in python code :
def button_name(self):
view_id = self.env.ref('external id').id
context = self._context.copy()
return {
'name': 'form_name',
'view_type': 'form',
'view_mode': 'tree',
'views': [(view_id, 'form')],
'res_model': 'model id',
'view_id': view_id,
'type': 'ir.actions.act_window',
'res_id': self.id,
'target': 'new',
'context': context,
}
Hi,
Please refer to the following video link to add a button:
https://www.youtube.com/watch?v=N1GC4qIXFr4
Regards
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
มี.ค. 15
|
8011 | ||
|
0
ก.ย. 15
|
5838 | ||
|
3
ธ.ค. 22
|
14411 | ||
|
3
ม.ค. 19
|
5392 | ||
Remove button when inherit a view
แก้ไขแล้ว
|
|
1
ต.ค. 17
|
19207 |
You can get some help from here:https://www.odoo.com/forum/help-1/question/add-button-to-form-view-85350