From 5aa3eb9dc53c315b24b31265fcb5ef4cd6a7c43d Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Fri, 13 Jun 2008 17:33:56 +0200 Subject: [PATCH] Added non-negative constraint for amount second currency on move line. --- move.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/move.py b/move.py index a5ba03df98..9984686ff2 100644 --- a/move.py +++ b/move.py @@ -386,6 +386,9 @@ class Line(OSV): ('credit_debit', 'CHECK((credit * debit = 0.0) AND (credit + debit >= 0.0))', 'Wrong credit/debit values!'), + ('check_amount_second_currency', + 'CHECK(amount_second_currency >= 0.0)', + 'Amount Second Currency mus tbe Positive!'), ] self._constraints += [ ('check_account', 'You can not create move line \n' \