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

how can I add a button to the list of existent buttons that is part of the action menu (Delete, Duplicate, Share ) and make the button to call a REST endpoint ?

Thank you in advance.



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

Try it bro:

<act_window id="action_account_invoice_test1" key2="client_action_multi" name="Change_Name" res_model="your_model" src_model="account.invoice" view_mode="form" target="new"/>

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

 

see below example, you can add like this.

<act_window
        id="act_account_invoice_partner_relation"
        name="Monthly Turnover"
        groups="account.group_account_manager"
        context="{'search_default_partner_id':[active_id], 'search_default_month':1,'search_default_user':1,'group_by_no_leaf':1,'group_by':[]}"
        res_model="account.invoice.report"
        src_model="res.partner"
        view_mode="graph"/>
Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
12
thg 4 19
4683
1
thg 4 25
136
0
thg 11 24
1620
1
thg 10 23
8357
0
thg 3 23
2191