Skip to content

Commit

Permalink
FIX onramp_simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Mar 11, 2024
1 parent ced1909 commit 7aaf586
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onramp_simulator/tools/onramp_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ def test_message(self, test_message):
"""Sends a message to any onramp.
:param test_message (onramp.simulator record): the message to send
"""
country_code = self.env["res.company"]._get_main_company().country_id.code
country_code = self.connector._res_config.env["res.company"]._get_main_company(

).country_id.code
headers = {
"Content-type": "application/json",
"x-cim-MessageType": test_message.message_type_url,
Expand Down

0 comments on commit 7aaf586

Please sign in to comment.