[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: Laurent Smet <smetl@users.noreply.github.com> Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
This commit is contained in:
committed by
Benjamin Frantzen (bfr)
parent
52949a1a83
commit
20a9cbfda8
@@ -2,4 +2,3 @@
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import models
|
||||
from . import tests
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from . import test_generate
|
||||
@@ -1,24 +0,0 @@
|
||||
# -*- 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)
|
||||
Reference in New Issue
Block a user