Skip to content
Snippets Groups Projects
Commit 20a9cbfd authored by Laurent Smet's avatar Laurent Smet Committed by Benjamin Frantzen (bfr)
Browse files

[FIX] l10n_it_edi: Remove useless test that is testing only one computed field


closes odoo/odoo#54067

X-original-commit: 07b07c7c359a31203fc2e4e4e09b909ad315453a
Related: odoo/enterprise#11653
Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
Signed-off-by: default avatarbfr-o <bfr-o@users.noreply.github.com>
parent 52949a1a
Branches
Tags
No related merge requests found
......@@ -2,4 +2,3 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from . import tests
# -*- coding: utf-8 -*-
from . import test_generate
# -*- coding: utf-8 -*-
import time
from odoo import fields
from odoo.tests.common import TransactionCase, Form
class TestItalianElectronicInvoice(TransactionCase):
def test_state(self):
f = Form(self.env['account.move'].with_context(default_type='out_invoice'))
f.partner_id = self.env.ref('base.res_partner_12')
with f.invoice_line_ids.new() as l:
l.product_id = self.env.ref('product.product_product_3')
invoice = f.save()
# I check that Initially customer invoice state is "Draft"
self.assertEqual(invoice.state, 'draft')
invoice.post()
# I check that customer invoice state is "Open"
self.assertEqual(invoice.state, 'posted')
# Electronic invoice must be present and have the same name as l10n_it_einvoice_name
self.assertEqual(invoice.l10n_it_einvoice_id.name, invoice.l10n_it_einvoice_name)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment