This is a default one2many field form view. My need is to add a confirmation message for those buttons.
I have another doubt some one2many form view shows "save and Discard " button and some of the one2many fields shows "Save & Close" "Save & new" and "Discard" in their default form view.
could you please explain what case one2many fields show "save" and "Discard" button
and what case one2many fields show "save&new", "Save&close" and "Discard" button in their default form view.
Hope you looking this: http://learnopenerp.blogspot.com/2017/12/how-to-display-confirmation-display-box.html
just override create method and follow above steps