Move second currency sign error message in _sql_constraint
issue5071 review35381002
This commit is contained in:
1 parent
b1c842a668
commit
0251cbbe7b
1 file changed
+1
-2
@@ -685,7 +685,7 @@ class Line(ModelSQL, ModelView):
|
||||
('second_currency_sign',
|
||||
Check(table, Coalesce(table.amount_second_currency, 0)
|
||||
* (table.debit - table.credit) >= 0),
|
||||
'wrong_second_currency_sign'),
|
||||
"Wrong second currency sign."),
|
||||
]
|
||||
cls.__rpc__.update({
|
||||
'on_write': RPC(instantiate=0),
|
||||
@@ -707,7 +707,6 @@ class Line(ModelSQL, ModelView):
|
||||
'already_reconciled': 'Line "%s" (%d) already reconciled.',
|
||||
'party_required': 'Party is required on line "%s"',
|
||||
'party_set': 'Party must not be set on line "%s"',
|
||||
'wrong_second_currency_sign': 'Wrong second currency sign.',
|
||||
})
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user