From 10ba17bdbead6f4756dc67ef91ad4a6ad3b391cd Mon Sep 17 00:00:00 2001 From: Lorenzo Romero Date: Fri, 16 Aug 2024 16:00:57 +0200 Subject: [PATCH] Re-added needaction_partner_id field to bitcoin notification --- payment_bitcoin/models/bitcoin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/payment_bitcoin/models/bitcoin.py b/payment_bitcoin/models/bitcoin.py index 578a329..21f3284 100644 --- a/payment_bitcoin/models/bitcoin.py +++ b/payment_bitcoin/models/bitcoin.py @@ -389,6 +389,8 @@ def send_bitcoin_address_goes_low_notification(self): if group: groups += group + needaction_partner_ids = [(4, user.partner_id.id) for user in groups.mapped('users')] + self.env["mail.message"].create( { "message_type": "notification", @@ -396,6 +398,7 @@ def send_bitcoin_address_goes_low_notification(self): "date": datetime.now(), "body": "

Only %s unused Bitcoin addresses are left. " "Please add new addresses.

" % unused_address_count, + 'needaction_partner_ids': needaction_partner_ids, } ) return