changeset 43ae98c5fc93 in modules/stock:default
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=43ae98c5fc93
description:
Add confirmation on all buttons that can not be undone
issue5258
review271141002
diffstat:
inventory.xml | 2 ++
move.xml | 2 ++
shipment.xml | 4 ++++
3 files changed, 8 insertions(+), 0 deletions(-)
diffs (73 lines):
diff -r a91ae03831e1 -r 43ae98c5fc93 inventory.xml
--- a/inventory.xml Fri Apr 12 15:59:25 2019 +0200
+++ b/inventory.xml Sun Apr 14 16:36:00 2019 +0200
@@ -95,6 +95,7 @@
<record model="ir.model.button" id="inventory_confirm_button">
<field name="name">confirm</field>
<field name="string">Confirm</field>
+ <field name="confirm">Are you sure you want to confirm the
inventory?</field>
<field name="model" search="[('model', '=', 'stock.inventory')]"/>
</record>
<record model="ir.model.button-res.group"
@@ -106,6 +107,7 @@
<record model="ir.model.button" id="inventory_cancel_button">
<field name="name">cancel</field>
<field name="string">Cancel</field>
+ <field name="confirm">Are you sure you want to cancel the
inventory?</field>
<field name="model" search="[('model', '=', 'stock.inventory')]"/>
</record>
<record model="ir.model.button-res.group"
diff -r a91ae03831e1 -r 43ae98c5fc93 move.xml
--- a/move.xml Fri Apr 12 15:59:25 2019 +0200
+++ b/move.xml Sun Apr 14 16:36:00 2019 +0200
@@ -114,6 +114,7 @@
<record model="ir.model.button" id="move_cancel_button">
<field name="name">cancel</field>
<field name="string">Cancel</field>
+ <field name="confirm">Are you sure you want to cancel the
move?</field>
<field name="model" search="[('model', '=', 'stock.move')]"/>
</record>
@@ -131,6 +132,7 @@
<record model="ir.model.button" id="move_do_button">
<field name="name">do</field>
<field name="string">Do</field>
+ <field name="confirm">Are you sure you want to complete the
move?</field>
<field name="model" search="[('model', '=', 'stock.move')]"/>
</record>
diff -r a91ae03831e1 -r 43ae98c5fc93 shipment.xml
--- a/shipment.xml Fri Apr 12 15:59:25 2019 +0200
+++ b/shipment.xml Sun Apr 14 16:36:00 2019 +0200
@@ -578,6 +578,7 @@
<record model="ir.model.button" id="shipment_in_receive_button">
<field name="name">receive</field>
<field name="string">Receive</field>
+ <field name="confirm">Are you sure you want to receive the
shipment?</field>
<field name="model"
search="[('model', '=', 'stock.shipment.in')]"/>
</record>
@@ -674,6 +675,7 @@
<record model="ir.model.button" id="shipment_out_done_button">
<field name="name">done</field>
<field name="string">Done</field>
+ <field name="confirm">Are you sure you want to complete the
shipment?</field>
<field name="model"
search="[('model', '=', 'stock.shipment.out')]"/>
</record>
@@ -882,6 +884,7 @@
<record model="ir.model.button"
id="shipment_out_return_receive_button">
<field name="name">receive</field>
<field name="string">Receive</field>
+ <field name="confirm">Are you sure you want to receive the
shipment?</field>
<field name="model"
search="[('model', '=', 'stock.shipment.out.return')]"/>
</record>
@@ -966,6 +969,7 @@
<record model="ir.model.button" id="shipment_in_return_done_button">
<field name="name">done</field>
<field name="string">Done</field>
+ <field name="confirm">Are you sure you want to complete the
shipment?</field>
<field name="model"
search="[('model', '=', 'stock.shipment.in.return')]"/>
</record>