I would like to override the default save & new button functionality ?
the button view is located at web\static\src\xml\base.xml and button click functionality is web\static\src\js\view_form.js.
i manged to override view by adding new xml file at mymodule\static\src\xml\custom.xml
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="AbstractFormPopup.buttons">
<t t-if="! readonly">
<t t-if="! multi_select">
<button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save</button>
</t>
<t t-if="multi_select">
<button type="button" class="oe_button oe_abstractformpopup-form-save oe_highlight">Save & Close</button>
<button type="button" class="oe_button oe_abstractformpopup-form-save-new oe_highlight">My Own Button</button>
</t>
or
</t>
<a class="oe_abstractformpopup-form-close oe_bold oe_form_button_cancel" href="javascript:void(0)">
<t t-if="! readonly">
Discard
</t>
<t t-if="readonly">
Close
</t>
</a>
</t>
</templates>
and adding
'qweb': [
"static/src/xml/base.xml",
],
in _openerp_.py
now button name is changed but the functionality is default functionality. how can i change that default button functionality ?