콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
7116 화면

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
3133
1
10월 21
3516
3
12월 16
8648
1
5월 22
4601
0
8월 25
3