Skip to content

Commit ec12ac6

Browse files
[FIX] Test compatibility of delivery_package_fee when no CoA is loaded on main company
1 parent f17416d commit ec12ac6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

delivery_package_fee/tests/test_package_fee.py

+11
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,16 @@ def test_package_fee_simple_with_fiscal_position_tax(self):
154154
"include_base_amount": True,
155155
}
156156
)
157+
tax_price_include2 = self.env["account.tax"].create(
158+
{
159+
"name": "15% inc",
160+
"type_tax_use": "sale",
161+
"amount_type": "percent",
162+
"amount": 15,
163+
"price_include": True,
164+
"include_base_amount": True,
165+
}
166+
)
157167
tax_price_exclude = self.env["account.tax"].create(
158168
{
159169
"name": "15% exc",
@@ -180,6 +190,7 @@ def test_package_fee_simple_with_fiscal_position_tax(self):
180190
)
181191

182192
# Setting tax in fiscal position on fee2 product
193+
self.fee1.taxes_id = tax_price_include2
183194
self.fee2.taxes_id = tax_price_include
184195
self.sale.fiscal_position_id = fiscal_position
185196

0 commit comments

Comments
 (0)