コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
5532 ビュー

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"/>
アバター
破棄
関連投稿 返信 ビュー 活動
12
4月 19
4687
1
4月 25
136
0
11月 24
1622
1
10月 23
8358
0
3月 23
2193