Skip to content

Commit 03bdca0

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 4f34a2d commit 03bdca0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

account_ecotax_sale/tests/test_sale_ecotax.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# @author Mourad EL HADJ MIMOUNE <[email protected]>
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
44

5+
from odoo import Command
56
from odoo.tests.common import Form
67

78
from odoo.addons.account_ecotax.tests.test_ecotax import TestInvoiceEcotaxCommon
@@ -16,6 +17,7 @@ def setUpClass(cls):
1617
"name": "product_a",
1718
"uom_id": cls.env.ref("uom.product_uom_unit").id,
1819
"weight": 100,
20+
"taxes_id": [Command.set(cls.invoice_tax.ids)],
1921
"list_price": 200,
2022
}
2123
)
@@ -24,6 +26,7 @@ def setUpClass(cls):
2426
"name": "product_b",
2527
"uom_id": cls.env.ref("uom.product_uom_unit").id,
2628
"list_price": 200,
29+
"taxes_id": [Command.set(cls.invoice_tax.ids)],
2730
"weight": 400,
2831
}
2932
)

0 commit comments

Comments
 (0)