Skip to content

Commit

Permalink
Use the configuration to check if a mail should be send in bitcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
fkantelberg committed Dec 1, 2023
1 parent 5012626 commit 850d74b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions payment_bitcoin/models/bitcoin.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,14 +344,16 @@ def cron_bitcoin_payment_reconciliation(self):
),
}
)
template_obj = self.env.ref(
"payment_bitcoin.mail_template_data_bit_coin_order_notification"
)
template_obj.send_mail(
bit_add_obj.order_id.id,
force_send=True,
raise_exception=True,
)

if acquirer_obj.bitcoin_send_email:
template_obj = self.env.ref(
"payment_bitcoin.mail_template_data_bit_coin_order_notification"
)
template_obj.send_mail(
bit_add_obj.order_id.id,
force_send=True,
raise_exception=True,
)

@api.model
def send_bitcoin_address_goes_low_notification(self):
Expand Down

0 comments on commit 850d74b

Please sign in to comment.