diff --git a/payment_btcpayserver/models/payment_transaction.py b/payment_btcpayserver/models/payment_transaction.py index 8ee7e7a..ba1ea1a 100644 --- a/payment_btcpayserver/models/payment_transaction.py +++ b/payment_btcpayserver/models/payment_transaction.py @@ -37,6 +37,10 @@ class PaymentTransaction(models.Model): return { 'api_url': '/btcpay/checkout', 'reference': self.reference, + # Keep the pre-19.0.1.1 key during rolling deployments. QWeb + # templates live in the database, so an instance restarted before + # the module is upgraded can still render the previous template. + 'item_number': self.reference, } @api.model