Protect Cancel button with a confirmation pop-up

This commit is contained in:
Alexis de Lattre
2017-06-13 12:36:02 +02:00
parent a5bd385e45
commit ba821dbd06
4 changed files with 11 additions and 0 deletions

View File

@@ -33,6 +33,9 @@
<field name="fiscal_position_id" position="attributes">
<attribute name="widget">selection</attribute>
</field>
<button name="button_cancel" type="object" position="attributes">
<attribute name="confirm">Are you sure you want to cancel this purchase order?</attribute>
</button>
</field>
</record>