From e787ac6651085ce7eceec76ec3f7e6e800ad1e2f Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Thu, 9 Sep 2010 12:39:55 +0530 Subject: [PATCH] [REM] Account payment: Remove unused code bzr revid: mra@mra-laptop-20100909070955-oa9148a7h4xxyo4a --- addons/account_payment/account_payment.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/addons/account_payment/account_payment.py b/addons/account_payment/account_payment.py index 045e5f81627..346bc4a6ae8 100644 --- a/addons/account_payment/account_payment.py +++ b/addons/account_payment/account_payment.py @@ -238,19 +238,6 @@ class payment_line(osv.osv): line.amount_currency, context=ctx) return res - def _value_date(self, cursor, user, ids, name, args, context=None): - if not ids: - return {} - res = {} - for line in self.browse(cursor, user, ids, context=context): - if line.order_id.date_prefered == 'fixed': - res[line.id] = line.order_id.date_scheduled - elif line.order_id.date_prefered == 'due': - res[line.id] = line.due_date or time.strftime('%Y-%m-%d') - else: - res[line.id] = time.strftime('%Y-%m-%d') - return res - def _get_currency(self, cr, uid, context): user = self.pool.get('res.users').browse(cr, uid, uid) if user.company_id: