~openerp-community/openobject-addons/6.0_bug_801562

« back to all changes in this revision

Viewing changes to account/account_move_line.py

  • Committer: Jay Vora(OpenERP)
  • Date: 2011-06-22 20:05:58 UTC
  • Revision ID: jvo@tinyerp.com-20110622200558-16kp1hsw1xc599my
[FIX] account: opening entries didn't bring forward the amount in currency when closing a fiscalyear. The centralisation had to take care on that too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
504
504
                                }),
505
505
        'date_created': fields.date('Creation date', select=True),
506
506
        'analytic_lines': fields.one2many('account.analytic.line', 'move_id', 'Analytic lines'),
507
 
        'centralisation': fields.selection([('normal','Normal'),('credit','Credit Centralisation'),('debit','Debit Centralisation')], 'Centralisation', size=6),
 
507
        'centralisation': fields.selection([('normal','Normal'),('credit','Credit Centralisation'),('debit','Debit Centralisation'),('currency','Currency Adjustment')], 'Centralisation', size=8),
508
508
        'balance': fields.function(_balance, fnct_search=_balance_search, method=True, string='Balance'),
509
509
        'state': fields.selection([('draft','Unbalanced'), ('valid','Valid')], 'State', readonly=True,
510
510
                                  help='When new move line is created the state will be \'Draft\'.\n* When all the payments are done it will be in \'Valid\' state.'),