Skip to content

Commit d5dcc4f

Browse files
[FIX] Force tax on test products
This aims to avoid having a different tax depending on which localization is installed for instance
1 parent c482033 commit d5dcc4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

account_ecotax_sale/tests/test_sale_ecotax.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def setUpClass(cls):
1717
"name": "product_a",
1818
"uom_id": cls.env.ref("uom.product_uom_unit").id,
1919
"weight": 100,
20+
"taxes_id": [Command.set(cls.invoice_tax.ids)],
2021
"list_price": 200,
2122
}
2223
)
@@ -25,6 +26,7 @@ def setUpClass(cls):
2526
"name": "product_b",
2627
"uom_id": cls.env.ref("uom.product_uom_unit").id,
2728
"list_price": 200,
29+
"taxes_id": [Command.set(cls.invoice_tax.ids)],
2830
"weight": 400,
2931
}
3032
)

0 commit comments

Comments
 (0)