From e49efce69a1119878475621c4255d8823438cb30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Thu, 15 May 2008 14:30:07 +0000 Subject: [PATCH] add a constraint to make sure the currency is defined, otherwise accounting generation will fail git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20982 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/PropertySheet/TradeOrder.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/product/ERP5/PropertySheet/TradeOrder.py b/product/ERP5/PropertySheet/TradeOrder.py index d896d715f2..e2b8815bb7 100644 --- a/product/ERP5/PropertySheet/TradeOrder.py +++ b/product/ERP5/PropertySheet/TradeOrder.py @@ -67,6 +67,13 @@ class TradeOrder: 'destination': 1, 'message': 'Recipient or Beneficiary must be defined', }, + { 'id' : 'price_currency_category_existence', + 'description' : 'Price Currency must be defined', + 'type' : 'CategoryExistence', + 'portal_type' : ('Currency', ), + 'price_currency': 1, + 'message': 'Currency must be defined', + }, { 'id' : 'total_quantity', 'description' : 'Total Quantity must not be 0', 'type' : 'TALESConstraint', -- 2.30.9