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

Hi all,

Is it possible to add delete button next to save and discard in odoo 12 form instead inside action??

アバター
破棄

Odoo is one of the best option for the ERP.

#odoo #openerp #ERP #customization

#tips #training #development #guide #python

These tips help you to get the basic idea about customization in odoo

https://learnopenerp.tumblr.com/

最善の回答

Yes, it's possible.

1) <button t-if="widget.is_action_enabled('delete')" type="button" class="btn btn-danger o_form_button_delete" accesskey="d">Delete</button>
Add after a line https://github.com/odoo/odoo/blob/12.0/addons/web/static/src/xml/base.xml#L408

2) this.$buttons.on('click', '.o_form_button_delete', this._onDeleteRecord.bind(this));
Add after a line https://github.com/odoo/odoo/blob/12.0/addons/web/static/src/js/views/form/form_controller.js#L150
        ​

アバター
破棄
著作者 最善の回答

Hi Jigar Patel,

Thank you for the answer, I did the same thing.

アバター
破棄
関連投稿 返信 ビュー 活動
2
5月 19
3150
1
10月 21
3551
3
12月 16
8668
1
5月 22
4630
0
9月 25
3