Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2181 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks. It helps me

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 22
2386
1
thg 1 22
1916
1
thg 10 21
14116
2
thg 1 24
14240
6
thg 1 24
15805