[FIX] account: don't create move lines that have neither an amount or a tax code

Fixes 51e9f90981
This commit is contained in:
Arthur Maniet 2015-02-20 06:07:56 +01:00
parent 9333c622e9
commit 6c37747057
1 changed files with 1 additions and 1 deletions

View File

@ -1374,7 +1374,7 @@ class account_move_line(osv.osv):
}
self.create(cr, uid, data, context)
#create the Tax movement
if not tax['amount']:
if not tax['amount'] and not tax[tax_code]:
continue
data = {
'move_id': vals['move_id'],