From 1449b68a7e39d4aa3d01e11e831147655013da31 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 27 May 2013 08:51:08 +0200 Subject: [PATCH] [REF] account_compute_tax_amount: add some missing spaces --- account_compute_tax_amount/account_move_line.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/account_compute_tax_amount/account_move_line.py b/account_compute_tax_amount/account_move_line.py index b4844e5b1..1789d0168 100644 --- a/account_compute_tax_amount/account_move_line.py +++ b/account_compute_tax_amount/account_move_line.py @@ -29,13 +29,13 @@ class account_move_line(orm.TransientModel): _inherit = "account.move.line" def create(self, cr, uid, vals, context=None, check=True): - result = super(account_move_line,self).create(cr, uid, vals, + result = super(account_move_line, self).create(cr, uid, vals, context=context, check=check) if result: - move_line = self.read(cr,uid,result,['credit','debit','tax_code_id']) + move_line = self.read(cr, uid, result, ['credit', 'debit', 'tax_code_id']) if move_line['tax_code_id']: tax_amount = move_line['credit'] - move_line['debit'] - self.write(cr,uid,[result],{'tax_amount':tax_amount}) + self.write(cr, uid, [result], {'tax_amount': tax_amount}) return result def write(self, cr, uid, ids, vals, context=None, check=True, update_check=True): @@ -45,11 +45,11 @@ class account_move_line(orm.TransientModel): update_check=update_check) if result: if ('debit' in vals) or ('credit' in vals): - move_lines = self.read(cr,uid,ids,['credit','debit','tax_code_id']) + move_lines = self.read(cr, uid, ids, ['credit', 'debit', 'tax_code_id']) for move_line in move_lines: if move_line['tax_code_id']: tax_amount = move_line['credit'] - move_line['debit'] - self.write(cr,uid,[move_line['id']],{'tax_amount':tax_amount}) + self.write(cr, uid, [move_line['id']], {'tax_amount': tax_amount}) return result