[FIX] flake8 PEP8 for module account_compute_tax_amount

This commit is contained in:
Nicolas Bessi
2014-07-10 15:43:17 +02:00
parent 3d576fe0aa
commit f517ea6ffd
3 changed files with 10 additions and 14 deletions

View File

@@ -19,5 +19,3 @@
##############################################################################
from . import account_move_line
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@@ -18,16 +18,14 @@
#
##############################################################################
{
"name" : "Recompute tax_amount",
"version" : "1.0",
"depends" : ["base",
"account",
],
"author" : "Camptocamp",
"name": "Recompute tax_amount",
"version": "1.0",
"depends": ["base",
"account"],
"author": "Camptocamp",
"description": """Recompute tax_amount to avoid sign problem""",
'website': 'http://www.camptocamp.com',
'data' : [],
'data': [],
'installable': True,
'active': False,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@@ -56,10 +56,10 @@ class account_move_line(orm.Model):
return result
def write(self, cr, uid, ids, vals, context=None, check=True, update_check=True):
result = super(account_move_line,self).write(cr, uid, ids, vals,
context=context,
check=check,
update_check=update_check)
result = super(account_move_line, self).write(cr, uid, ids, vals,
context=context,
check=check,
update_check=update_check)
if result:
if ('debit' in vals) or ('credit' in vals):
move_lines = self.read(cr, uid, ids,