mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] flake8 PEP8 for module account_compute_tax_amount
This commit is contained in:
@@ -19,5 +19,3 @@
|
||||
##############################################################################
|
||||
|
||||
from . import account_move_line
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user