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

Hello dear odooers

I just want to add extra button next to create in hr.payroll payslips menu and after user select records do something.

Also how to override print and favorite menu placed in the tree view.

so this is my code to add an extra item to payslip action menu :

    <record id="hr_employee_action_sub" model="ir.actions.act_window">
<field name="name">New Item>
<field name="type">ir.actions.act_window>
<field name="res_model">hr.payslip<field>
<field name="domain">[]>
<field name="view_mode">tree,form<field>
<field name="view_id" ref="hr_payroll.view_hr_payslip_form"/>

record
>

i can make a sub menu in action menu but how can i trigger python function

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Please check this blog

https://www.cybrosys.com/blog/add-new-button-near-create-button-odoo-12

in v14

https://www.youtube.com/watch?v=KUNMxMMVwgU

Regards

อวตาร
ละทิ้ง
ผู้เขียน

Thanks. It helps me

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 22
2453
1
ม.ค. 22
1959
How to set input in salary rule แก้ไขแล้ว
1
ต.ค. 21
14169
2
ม.ค. 24
14298
Shift Working Schedule แก้ไขแล้ว
6
ม.ค. 24
15828