Odoo Ayuda

0

0
3 Respuestas
0
Jigar Patel India
12/7/19 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 India
12/7/19 6:51

Hi Jigar Patel,

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

Realizar una pregunta
Writer
Keep Informed
1 seguidor(es)
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