Skip to content

Commit ed532eb

Browse files
committed
[17.0][ADD] intrastat_product: fix test
1 parent 29a3cee commit ed532eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

intrastat_product/tests/test_intrastat_product.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ def test_declaration_manual_lines(self):
9797
self.assertEqual(declaration_line.src_dest_country_code, "FR")
9898

9999
# Test Greece country code conversion
100+
computation_line_form.src_dest_country_id = self.env.ref("base.gr")
100101
declaration_line_form_greece = Form(
101-
self.env["intrastat.product.declaration.line"].with_context(
102+
self.env["intrastat.product.computation.line"].with_context(
102103
default_parent_id=self.declaration.id
103104
)
104105
)
105-
declaration_line_form_greece.src_dest_country_id = self.env.ref("base.gr")
106106
declaration_line_form_greece = declaration_line_form.save()
107107
self.assertEqual(declaration_line_form_greece.src_dest_country_code, "EL")
108108

0 commit comments

Comments
 (0)