From d58dc3decc65ea389e952f29c3f5d6425b2c832e Mon Sep 17 00:00:00 2001 From: vrenaville Date: Tue, 2 Dec 2014 09:35:28 +0100 Subject: [PATCH] [FIX] Improve by adding group multicurrency and remove test on currency of account --- account_easy_reconcile/easy_reconcile.py | 13 ------------- account_easy_reconcile/easy_reconcile.xml | 10 ++++------ 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/account_easy_reconcile/easy_reconcile.py b/account_easy_reconcile/easy_reconcile.py index bb598605..34d0604c 100644 --- a/account_easy_reconcile/easy_reconcile.py +++ b/account_easy_reconcile/easy_reconcile.py @@ -47,14 +47,6 @@ class EasyReconcileOptions(orm.AbstractModel): ('newest_debit', 'Date of most recent debit') ] - def _get_account_currency(self, cr, uid, ids, field_name, arg, - context=None): - result = {} - for line in self.browse(cr, uid, ids, context=context): - # Always provide second currency - result[line.id] = bool(line.task_id.account.currency_id.id) - return result - _columns = { 'write_off': fields.float('Write off allowed'), 'account_lost_id': fields.many2one( @@ -71,11 +63,6 @@ class EasyReconcileOptions(orm.AbstractModel): 'analytic_account_id': fields.many2one( 'account.analytic.account', 'Analytic Account', help="Analytic account for the write-off"), - 'account_has_currency': fields.function( - _get_account_currency, - type='boolean', - string='has currency', - help="Check if related account has currency."), 'income_exchange_account_id': fields.many2one( 'account.account', 'Gain Exchange Rate Account'), 'expense_exchange_account_id': fields.many2one( diff --git a/account_easy_reconcile/easy_reconcile.xml b/account_easy_reconcile/easy_reconcile.xml index c23c7f05..1a95139b 100644 --- a/account_easy_reconcile/easy_reconcile.xml +++ b/account_easy_reconcile/easy_reconcile.xml @@ -129,9 +129,8 @@ The lines should have the same amount (with the write-off) and the same referenc - - - + + @@ -150,9 +149,8 @@ The lines should have the same amount (with the write-off) and the same referenc - - - + +