From 027d5ad2132c0c947ce41ea503fa10db7da8d75c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 18 Apr 2010 19:36:42 +0200 Subject: [PATCH] Add missing error message for issue1526 --- shipment.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shipment.py b/shipment.py index 0bbaea41fb..acb4acf731 100644 --- a/shipment.py +++ b/shipment.py @@ -625,6 +625,12 @@ class ShipmentOut(ModelWorkflow, ModelSQL, ModelView): 'button_draft': True, }) self._order[0] = ('id', 'DESC') + self._error_messages.update({ + 'outgoing_move_output_source': 'Outgoing Moves must ' \ + 'have the warehouse output location as source location!', + 'inventory_move_output_dest': 'Inventory Moves must have the ' \ + 'warehouse output location as destination location!', + }) def init(self, cursor, module_name): # Migration from 1.2: packing renamed into shipment