[FIX] account: don't create move lines that have neither an amount or a tax code
Fixes 51e9f90981
This commit is contained in:
parent
9333c622e9
commit
6c37747057
|
@ -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'],
|
||||
|
|
Loading…
Reference in New Issue