[IMP] stock: display translated selection value in message
authorMartin Trigaux <mat@openerp.com>
Fri, 19 Sep 2014 09:34:41 +0000 (11:34 +0200)
committerMartin Trigaux <mat@openerp.com>
Fri, 19 Sep 2014 09:34:47 +0000 (11:34 +0200)
commit6b9b948a3c655b3d8961d2138d75d59f4bdb5de1
tree04a891b9c4a1670e681d225e513061f6f5fa048a
parentbcc08ee4227048e05089bac2d5b8e1d5539db82c
[IMP] stock: display translated selection value in message

When a user tried to delete a done or canceled picking, the error messages used to display the key of the selection field ('done' or 'cancel') which was surprising in other languages than English. This patch takes the string value of the selection field, keeping the context to get the translated value (opw 613068)
addons/stock/stock.py