[FIX] account: fix cash based tax entry when registering a payment, in case of a 0% tax

This commit is contained in:
qdp-odoo
2016-12-30 21:01:35 +01:00
parent 4f29b77e3d
commit bdab2b9118
+2
View File
@@ -1486,6 +1486,8 @@ class AccountPartialReconcile(models.Model):
to_clear_aml.reconcile()
if any([tax.use_cash_basis for tax in line.tax_ids]):
if not newly_created_move:
newly_created_move = self._create_tax_basis_move()
#create cash basis entry for the base
for tax in line.tax_ids:
self.env['account.move.line'].with_context(check_move_validity=False).create({