Odoo Help

0

0
3 Answers
0
Jigar Patel
7/12/19, 6:43 AM

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
        ​

0
Sunil KumarTC
7/12/19, 6:51 AM

Hi Jigar Patel,

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

Ask a Question
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now