From 7555b99e19f373b79875cdcfb22c90773836bc49 Mon Sep 17 00:00:00 2001 From: Nhomar Hernandez Date: Sat, 8 Oct 2011 18:46:41 -0400 Subject: [PATCH] [REF] Deleted unused method _get_payment_term_lines on account_voucher, avoiding noise and so much lines in this code. bzr revid: openerp@cl-t076-283cl-20111008224641-omo5xikllr1xryg7 --- addons/account_voucher/account_voucher.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index 005e5d9ab46..772c988c18a 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -652,12 +652,10 @@ class account_voucher(osv.osv): return {'value':res} def action_move_line_create(self, cr, uid, ids, context=None): - def _get_payment_term_lines(term_id, amount): - term_pool = self.pool.get('account.payment.term') - if term_id and amount: - terms = term_pool.compute(cr, uid, term_id, amount) - return terms - return False + ''' + This method create account move from voucher. + Method refactored by Vauxoo. + ''' if context is None: context = {} move_pool = self.pool.get('account.move')