From d9ec4fc59d7299b324a62963d4fde63422272385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 6 Sep 2008 19:01:49 +0200 Subject: [PATCH] Remove unused code on account --- invoice.py | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/invoice.py b/invoice.py index 2a9b0f500c..ba7729b130 100644 --- a/invoice.py +++ b/invoice.py @@ -161,34 +161,3 @@ class InvoiceLine(OSV): return res InvoiceLine() - - -class Account(OSV): - _name = 'analytic_account.account' - - def delete(self, cursor, user, ids, context=None): - invoice_line_obj = self.pool.get('account.invoice.line') - try: - invoice_line_obj.fields_view_get(cursor.dbname) - except: - pass - return super(Account, self).delete(cursor, user, ids, context=context) - - def create(self, cursor, user, vals, context=None): - invoice_line_obj = self.pool.get('account.invoice.line') - try: - invoice_line_obj.fields_view_get(cursor.dbname) - except: - pass - return super(Account, self).create(cursor, user, vals, context=context) - - def write(self, cursor, user, ids, vals, context=None): - invoice_line_obj = self.pool.get('account.invoice.line') - try: - invoice_line_obj.fields_view_get(cursor.dbname) - except: - pass - return super(Account, self).write(cursor, user, ids, vals, - context=context) - -Account()