Fix digits of start and end balance

This commit is contained in:
Cédric Krier
2009-06-05 19:13:22 +02:00
parent ee7ba0b0af
commit 1e7545caef
2 changed files with 6 additions and 3 deletions
+2
View File
@@ -1,3 +1,5 @@
* Fix digits of start and end balance
Version 1.2.0 - 2009-04-20
* Bug fixes (see mercurial logs for details)
+4 -3
View File
@@ -19,9 +19,10 @@ class Statement(ModelWorkflow, ModelSQL, ModelView):
currency_digits = fields.Function('get_currency_digits', type='integer',
string='Currency Digits', on_change_with=['journal'])
date = fields.Date('Date', required=True, states=_STATES, select=1)
start_balance = fields.Numeric('Start Balance', digits=(16, 2),
states=_STATES)
end_balance = fields.Numeric('End Balance', digits=(16, 2), states=_STATES)
start_balance = fields.Numeric('Start Balance', digits="(16, currency_digits)",
states=_STATES, depends=['currency_digits'])
end_balance = fields.Numeric('End Balance', digits="(16, currency_digits)",
states=_STATES, depends=['currency_digits'])
lines = fields.One2Many('account.statement.line', 'statement',
'Transactions', states={
'readonly': "(state != 'draft') or (not bool(journal))",