[FIX] account: tests: remove the default taxes from the invoices created by init_invoice helper

closes odoo/odoo#59798

X-original-commit: f3bb7e12823d13967b32a1f762c3589e5c7aa26c
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
This commit is contained in:
oco-odoo
2020-10-13 12:02:11 +00:00
parent 00504fe7e7
commit 270716c8a2
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -370,12 +370,14 @@ class AccountTestInvoicingCommon(SavepointCase):
with move_form.invoice_line_ids.new() as line_form:
line_form.product_id = product
if taxes:
line_form.tax_ids.clear()
line_form.tax_ids.add(taxes)
for amount in amounts:
with move_form.invoice_line_ids.new() as line_form:
line_form.price_unit = amount
if taxes:
line_form.tax_ids.clear()
line_form.tax_ids.add(taxes)
rslt = move_form.save()
@@ -1761,7 +1761,7 @@ class TestAccountMoveReconcile(AccountTestInvoicingCommon):
],
})
misc_move.post()
misc_move.action_post()
lines_to_reconcile = (misc_move + caba_move).mapped('line_ids').filtered(lambda x: x.account_id == self.tax_account_1)
lines_to_reconcile.reconcile()