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