From 3a37efefab37f0525a4be8facb99f84743a6b396 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Fri, 24 Apr 2015 09:00:40 +0200 Subject: [PATCH] [IMP] Remove unnecessary code --- mis_builder/models/mis_builder.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/mis_builder/models/mis_builder.py b/mis_builder/models/mis_builder.py index 9f9f6054..c7574dfc 100644 --- a/mis_builder/models/mis_builder.py +++ b/mis_builder/models/mis_builder.py @@ -36,17 +36,6 @@ from collections import OrderedDict from aep import AccountingExpressionProcessor from openerp.api import Environment - -FUNCTION = [('credit', 'crd'), - ('debit', 'deb'), - ('balance', 'bal') - ] - -FUNCTION_LIST = [x[1] for x in FUNCTION] - -PARAMETERS = ['s', 'i', 'e', 'p', ''] - - class AutoStruct(object): def __init__(self, **kwargs): @@ -77,10 +66,6 @@ def _python_var(var_str): def _is_valid_python_var(name): - for item in FUNCTION_LIST: - for param in PARAMETERS: - if name.startswith(item + param): - return False return re.match("[_A-Za-z][_a-zA-Z0-9]*$", name)