Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
7138 Weergaven

Hi all,

Is it possible to add delete button next to save and discard in odoo 12 form instead inside action??

Avatar
Annuleer

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/

Beste antwoord

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
        ​

Avatar
Annuleer
Auteur Beste antwoord

Hi Jigar Patel,

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
mei 19
3143
1
okt. 21
3524
3
dec. 16
8652
1
mei 22
4611
0
aug. 25
6