Hi all,
Is it possible to add delete button next to save and discard in odoo 12 form instead inside action??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi all,
Is it possible to add delete button next to save and discard in odoo 12 form instead inside action??
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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
मई 19
|
3130 | ||
|
1
अक्तू॰ 21
|
3516 | ||
|
3
दिस॰ 16
|
8647 | ||
|
1
मई 22
|
4601 | ||
|
0
अग॰ 25
|
3 |
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/