[FIX] l10n_it_edi: fix test

After d3ddcc613f l10n_it_edi started to
fail its tests because not adapted, porting the code from the same commit
fix the issue

opw-2214185

closes odoo/odoo#48397

X-original-commit: 33e80333b84d71ae0f61d4ab0e3aa7fdfcdf0f78
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Andrea Grazioso (agr-odoo)
2020-03-26 08:57:51 +00:00
parent db174730ba
commit 82d2dcdf7d
+1 -1
View File
@@ -6,7 +6,7 @@ from odoo.tests.common import TransactionCase, Form
class TestItalianElectronicInvoice(TransactionCase):
def test_state(self):
f = Form(self.env['account.move'])
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')