[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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user