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 a3245985e5
commit 2f9584e04e
5 changed files with 14 additions and 0 deletions

View File

@@ -24,6 +24,9 @@
<attribute name="context">{'show_address': 1, 'default_type': 'delivery'}</attribute>
<attribute name="options">{'always_reload': True}</attribute>
</field>
<button name="action_cancel" type="object" position="attributes">
<attribute name="confirm">Are you sure you want to cancel this sale order?</attribute>
</button>
</field>
</record>