We are trying to implement a confirmation dialog when saving records.
Eg. when a user creates/edits a partner and clicks "Save", we would like to check for existing partners with the same name. If any are found, a confirmation window would pop up with the options "OK" or "Cancel". If "Cancel" is pressed, the record will not be saved and the user can continue editing the partner. If "OK" is pressed, the record is saved.
This seems like a very simple functionality but I'm having trouble finding any examples of how to accomplish this. Any help pointing us in the right direction would be appreciated.
We are running Odoo 12 Enterprise.
How to display confirmation display box / message box on button click: https://goo.gl/6P7aR1