Fix digits of start and end balance
This commit is contained in:
@@ -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
@@ -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))",
|
||||
|
||||
Reference in New Issue
Block a user