Skip to content

Commit

Permalink
[FIX] exclude from tariff european countries
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocorato committed Dec 4, 2024
1 parent a7e512c commit deabda5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion product_managed_replenishment_cost/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit deabda5

Please sign in to comment.