[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
This commit is contained in:
Nhomar Hernandez 2011-10-08 18:46:41 -04:00 committed by openerp
parent 4adcbde352
commit 7555b99e19
1 changed files with 4 additions and 6 deletions

View File

@ -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')