I have a one2many
field, and when I click to create a new record, I have 2 buttons.
I want to remove the "Save & New"
button and keep the "Save & Close"
button.
I hope you do not mind sleazy hacks.
In your form view you can try this. You may need to clear your cache before it works for you. This is only sensible if you do not want it to appear but its not really a security thing just for looks and process. You may need to ensure the class selector is correct for your version.
I tested this by placing it in the xml for the form view that appears, not in the xml for the form view that you are adding a new one2many record within. So to be clear this css needs to be in the form view that pops up and contains the "Save & New" button.
<style>
.oe_abstractformpopup-form-save-new {
display:none !important;
}
</style>