Skip to content

Commit

Permalink
Merge PR #1716 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by rousseldenis
  • Loading branch information
OCA-git-bot committed Sep 19, 2024
2 parents ba8e83e + a4d6f81 commit 890d2c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions product_country_restriction/models/res_country.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ def _compute_product_country_restriction_ids(self):

def action_view_country_restrictions(self):
self.ensure_one()
ref = "product_country_restriction." "product_country_restrictionact_window"
action_dict = self.env["ir.actions.act_window"]._for_xml_id(
"product_country_restriction.product_country_restriction_act_window"
)
country_id = self.id
action_dict = self.env.ref(ref).read()[0]
action_dict["domain"] = [
"|",
("country_group_ids.country_ids", "in", [country_id]),
Expand Down

0 comments on commit 890d2c1

Please sign in to comment.