Odoo Help

0

0
3 الإجابات
0
Jigar Patel الهند
12‏/7‏/2019 6:43 ص

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 الهند
12‏/7‏/2019 6:51 ص

Hi Jigar Patel,

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

اطرح سؤالاً
Writer
الوسوم
Keep Informed
1 متابعين
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 E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now