[IMP] In list view of journal items, user can sort using Reconcile ref field currently.
authorJaydeep Barot <jar@tinyerp.com>
Wed, 2 Apr 2014 08:53:56 +0000 (14:23 +0530)
committerJaydeep Barot <jar@tinyerp.com>
Wed, 2 Apr 2014 08:53:56 +0000 (14:23 +0530)
bzr revid: jar@tinyerp.com-20140402085356-4bqscthp64r8ssph

addons/account/account_move_line.py

index b48e842..b328792 100644 (file)
@@ -445,7 +445,7 @@ class account_move_line(osv.osv):
         'statement_id': fields.many2one('account.bank.statement', 'Statement', help="The bank statement used for bank reconciliation", select=1),
         'reconcile_id': fields.many2one('account.move.reconcile', 'Reconcile', readonly=True, ondelete='set null', select=2),
         'reconcile_partial_id': fields.many2one('account.move.reconcile', 'Partial Reconcile', readonly=True, ondelete='set null', select=2),
-        'reconcile': fields.function(_get_reconcile, type='char', string='Reconcile Ref'),
+        'reconcile': fields.function(_get_reconcile, type='char', string='Reconcile Ref', store=True),
         'amount_currency': fields.float('Amount Currency', help="The amount expressed in an optional other currency if it is a multi-currency entry.", digits_compute=dp.get_precision('Account')),
         'amount_residual_currency': fields.function(_amount_residual, string='Residual Amount in Currency', multi="residual", help="The residual amount on a receivable or payable of a journal entry expressed in its currency (maybe different of the company currency)."),
         'amount_residual': fields.function(_amount_residual, string='Residual Amount', multi="residual", help="The residual amount on a receivable or payable of a journal entry expressed in the company currency."),