Skip to content

Commit ebd64a8

Browse files
committed
Merge PR #2597 into 16.0
Signed-off-by pedrobaeza
2 parents 8e62078 + 426c52f commit ebd64a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

purchase_landed_cost/models/purchase_cost_distribution.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def _compute_standard_price_old(self):
467467
@api.model
468468
def get_action_purchase_cost_distribution(self):
469469
xml_id = "purchase_landed_cost.action_purchase_cost_distribution"
470-
action = self.env.ref(xml_id).read()[0]
470+
action = self.env["ir.actions.act_window"]._for_xml_id(xml_id)
471471
distributions = self.mapped("distribution")
472472
if len(distributions) == 1:
473473
form = self.env.ref("purchase_landed_cost.purchase_cost_distribution_form")

0 commit comments

Comments
 (0)