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

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.



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

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"/>

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

 

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"/>
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
12
เม.ย. 19
4692
1
เม.ย. 25
136
0
พ.ย. 24
1628
1
ต.ค. 23
8362
0
มี.ค. 23
2206