[FIX] flake8 pep8 for account_tax_update

This commit is contained in:
Nicolas Bessi
2014-07-11 17:42:52 +02:00
parent ea7716d642
commit 7c00c6cd86

View File

@@ -164,7 +164,7 @@ class UpdateTaxConfig(orm.Model):
# 6.0 messes up the name change with copy + write, while
# 6.1 throws name uniqueness constraint violation
# So jumping some hoops with rewriting the new name
## We will check if we need to dupliace
# We will check if we need to dupliace
cp_base_code_id = False
cp_ref_base_code_id = False
cp_tax_code_id = False
@@ -187,7 +187,7 @@ class UpdateTaxConfig(orm.Model):
line.source_tax_id.tax_code_id.id,
{'name': rename_old})
if line.source_tax_id.ref_base_code_id:
## Check if with have the same tax code for base_code_id
# Check if with have the same tax code for base_code_id
if line.source_tax_id.ref_base_code_id.id == line.source_tax_id.base_code_id.id:
cp_ref_base_code_id = cp_base_code_id
else: