From deabda5de209d50b4bdc54c2f96e2b0a637653a7 Mon Sep 17 00:00:00 2001 From: sergiocorato Date: Wed, 4 Dec 2024 19:15:34 +0100 Subject: [PATCH] [FIX] exclude from tariff european countries --- .../models/product_product.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/product_managed_replenishment_cost/models/product_product.py b/product_managed_replenishment_cost/models/product_product.py index 1e4db161..1677b8e9 100644 --- a/product_managed_replenishment_cost/models/product_product.py +++ b/product_managed_replenishment_cost/models/product_product.py @@ -308,7 +308,11 @@ def _get_price_unit_from_seller(self, direct_cost=False): ) ) margin_percentage += seller.currency_id.change_charge_percentage - if self.intrastat_code_id.tariff_id: + europe_country_group = self.env.ref("base.europe") + if ( + self.intrastat_code_id.tariff_id + and seller.name.country_id not in europe_country_group.country_ids + ): margin_percentage += self.intrastat_code_id.tariff_id.tariff_percentage if margin_percentage: price_unit *= 1 + margin_percentage / 100.0