Added non-negative constraint for amount second currency on move line.

This commit is contained in:
Bertrand Chenal committed 2008-06-13 17:33:56 +02:00
1 parent e62530c6cb
commit 5aa3eb9dc5
1 file changed
+3
+3
View File
@@ -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' \